"use client"; import { FC, Fragment, useState } from "react"; import { DayPicker } from "react-day-picker"; import { Dialog, Transition } from "@headlessui/react"; // ui import { Button } from "@plane/ui"; export type InboxIssueSnoozeModalProps = { isOpen: boolean; value: Date | undefined; onConfirm: (value: Date) => void; handleClose: () => void; }; export const InboxIssueSnoozeModal: FC = (props) => { const { isOpen, handleClose, value, onConfirm } = props; // states const [date, setDate] = useState(value || new Date()); return (
{ if (!date) return; setDate(date); }} mode="single" className="rounded-md border border-custom-border-200 p-3" // disabled={[ // { // before: tomorrow, // }, // ]} />
); };