import { useTranslation } from 'react-i18next'; import { Modal } from '@/components/ui/Modal'; interface ImportDialogProps { open: boolean; systemCount: number; userCount: number; onSelect: (target: 'system' | 'user' | 'both') => void; onCancel: () => void; } export function ImportDialog({ open, systemCount, userCount, onSelect, onCancel, }: ImportDialogProps) { const { t } = useTranslation(); return (

{t('dialog.importTarget')}

{systemCount > 0 && t('dialog.importSystemCount', { count: systemCount })} {systemCount > 0 && userCount > 0 && ' | '} {userCount > 0 && t('dialog.importUserCount', { count: userCount })}

{systemCount > 0 && ( )} {userCount > 0 && ( )} {systemCount > 0 && userCount > 0 && ( )}
); }