import { Button, ButtonVariant, Form, FormGroup, Modal, ModalVariant, ValidatedOptions, } from "@patternfly/react-core"; import { useTranslation } from "react-i18next"; import { useForm, UseFormMethods } from "react-hook-form"; import type { KeyValueType } from "../components/key-value-form/key-value-convert"; import { KeycloakTextInput } from "../components/keycloak-text-input/KeycloakTextInput"; type AddMessageBundleModalProps = { id?: string; form: UseFormMethods; save: (model: BundleForm) => void; handleModalToggle: () => void; }; export type BundleForm = { messageBundle: KeyValueType; }; export const AddMessageBundleModal = ({ handleModalToggle, save, }: AddMessageBundleModalProps) => { const { t } = useTranslation("realm-settings"); const { register, handleSubmit, formState: { errors }, } = useForm(); return ( {t("common:create")} , , ]} >
); };