import React from "react"; import { Button, ButtonVariant, Form, FormGroup, Modal, ModalVariant, TextInput, 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"; 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")} , , ]} >
); };