import clsx from "clsx"; import { PropsWithChildren, useState } from "react"; import { InputText } from "../../molecules/forms/input-text/InputText"; import { Modal, ModalProps } from "../../molecules/modal/Modal"; import { iconClass } from "../../utils/iconClass"; function RemoveModalFooter({ value, valueToCompare, onSubmit, onClose, i18n = (f: string) => f }: ModalProps) { return (
); } export interface RemoveModalProps extends ModalProps { valueToCompare: string; itemType?: string; i18n?: (f: string) => string; maxWidth?: string; } export function RemoveModal({ maxWidth = "300px", children, ...props }: PropsWithChildren) { const { i18n = (f) => f } = props; const [value, setValue] = useState(); return (
{children} {i18n("To drop")} {props.valueToCompare},  {i18n("type the")}  "{props.itemType?.toLowerCase()}"  {i18n("name")} "{props.valueToCompare}".
setValue(value)} />
); }