import React from 'react'; import { useI18n } from '@/application/i18n/I18nProvider'; import { SelectHostPanelContent, type SelectHostPanelContentProps } from './SelectHostPanelContent'; import { Dialog, DialogContent, DialogHeader, DialogTitle, } from './ui/dialog'; export interface SelectHostDialogProps extends Omit { open: boolean; onOpenChange: (open: boolean) => void; title?: string; } export const SelectHostDialog: React.FC = ({ open, onOpenChange, title, onConfirm, ...contentProps }) => { const { t } = useI18n(); const dialogTitle = title ?? t('snippets.targets.add'); return ( {dialogTitle} { onConfirm(); onOpenChange(false); }} /> ); };