import { Button, ButtonVariant, Form, Modal, ModalVariant, } from "@patternfly/react-core"; import { FormProvider, SubmitHandler, UseFormReturn } from "react-hook-form"; import { useTranslation } from "react-i18next"; import { TextControl } from "@keycloak/keycloak-ui-shared"; import type { KeyValueType } from "../components/key-value-form/key-value-convert"; type AddTranslationModalProps = { id?: string; form: UseFormReturn; save: SubmitHandler; handleModalToggle: () => void; }; export type TranslationForm = { key: string; value: string; translation: KeyValueType; }; export const AddTranslationModal = ({ handleModalToggle, save, form, }: AddTranslationModalProps) => { const { t } = useTranslation(); return ( {t("create")} , , ]} >
); };