import { Checkbox, CheckboxGroup, Modal, ModalBody, ModalCloseButton, ModalContent, ModalHeader, ModalOverlay, Text, Textarea, VStack, } from "@chakra-ui/react"; import { useState } from "react"; export default function (props: { departments: string[]; isOpen: boolean; onClose: () => void; }) { const [departments, setDepartments] = useState([] as string[]); function reset() { (document.getElementById("start") as HTMLInputElement).value = ""; (document.getElementById("end") as HTMLInputElement).value = ""; (document.getElementById("reason") as HTMLTextAreaElement).value = ""; props.onClose(); } async function submit() { const start = (document.getElementById("start") as HTMLInputElement).value; const end = (document.getElementById("start") as HTMLInputElement).value; const reason = (document.getElementById("reason") as HTMLTextAreaElement) .value; } return ( <> New Inactivity Notice Start Date

End Date

Reason