import { useState } from 'react'; import { Dialog, DialogContent, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import { useTranslation } from 'react-i18next'; import ModelsPanel from './ModelsPanel'; interface ModelsDialogProps { open: boolean; onOpenChange: (open: boolean) => void; } // Standalone Models dialog. The unified Settings dialog renders // directly; this wrapper is kept for places that open Models on its own // (e.g. the model picker inside dynamic forms). export default function ModelsDialog({ open, onOpenChange, }: ModelsDialogProps) { const { t } = useTranslation(); const [blocking, setBlocking] = useState(false); return ( { if (!newOpen && blocking) return; onOpenChange(newOpen); }} > {t('models.title')} ); }