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