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"; type AddMessageBundleModalProps = { id?: string; form: UseFormMethods; save: (model: BundleForm) => void; handleModalToggle: () => void; }; export type KeyValueType = { key: string; value: string }; 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")} , , ]} >
); };