import React from "react"; import { ModModalConfirmationProps, ModModalFormProps } from "./TModal"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogTitle, AlertDialogTrigger, } from "@/components/ui/alert-dialog"; import { Button } from "@/components/ui/button"; import { Divider } from "@nextui-org/react"; class ModModalForm extends React.Component { constructor(props: ModModalFormProps) { super(props); } render(): React.ReactNode { return ( {this.props.heading} {this.props.content} {this.props.inputs.map((input, index) => { // TODO: Change this to something other than a react node. Won't work with state. return (
{input}
); })}
{this.props.cancelButton.content} {this.props.actionButton.content}
); } } export { ModModalForm };