import { Center, Flex, Modal, ModalBody, ModalCloseButton, ModalContent, ModalHeader, ModalOverlay, Tabs, Text, } from '@chakra-ui/react'; import { FileInput } from '~/components/FileInput'; export interface ImportSecretModalProps { clientName?: React.ReactNode; children: React.ReactNode; show: boolean; onClose: () => void; onImport: (file: File) => void; } export function ImportSecretModal({ clientName, children, show, onClose, onImport }: ImportSecretModalProps) { const handleFileReceived = (files: File[]) => onImport(files[0]); return ( 导入密钥数据库
拖放或点我选择含有密钥的数据库文件
选择你的{clientName && <>「{clientName}」}客户端平台以查看对应说明: {children}
); }