import { useTranslation } from "react-i18next"; import { Dialog, DialogContent, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { Label } from "@/components/ui/label"; interface CommonConfigEditorProps { value: string; onChange: (value: string) => void; useCommonConfig: boolean; onCommonConfigToggle: (checked: boolean) => void; commonConfigSnippet: string; onCommonConfigSnippetChange: (value: string) => void; commonConfigError: string; onEditClick: () => void; isModalOpen: boolean; onModalClose: () => void; } export function CommonConfigEditor({ value, onChange, useCommonConfig, onCommonConfigToggle, commonConfigSnippet, onCommonConfigSnippetChange, commonConfigError, onEditClick, isModalOpen, onModalClose, }: CommonConfigEditorProps) { const { t } = useTranslation(); return ( <>
{commonConfigError && !isModalOpen && (

{commonConfigError}

)}