'use client'; import { AlignInfoIcon as IconInfoCustom } from '@/components/misc/alignui-icons'; import * as React from 'react'; import { ChevronLeft, ChevronRight, Clock, X } from 'lucide-react'; import { format } from 'date-fns'; import type { DateRange } from 'react-day-picker'; import * as Button from '@/components/ui/button'; import * as Checkbox from '@/components/ui/checkbox'; import * as CompactButton from '@/components/ui/compact-button'; import * as DatepickerPrimivites from '@/components/ui/datepicker'; import * as Input from '@/components/ui/input'; import * as Label from '@/components/ui/label'; import { cn } from '@/utils/cn'; function EventCalendar() { const [range, setRange] = React.useState({ from: new Date(2024, 0, 15), // January 15, 2024 to: new Date(2024, 0, 21), // January 21, 2024 }); const [participants, setParticipants] = React.useState(10); const [openToAll, setOpenToAll] = React.useState(true); return (
{/* Header */}

Event Calendar

Schedule your team meetings and events easily

{/* Calendar */}
, IconRight: () => ( ), }} />
{/* Form Fields */}
{/* Date Inputs */}
Start date
End date
{/* Maximum participants */}
Maximum participants setParticipants(Number(e.target.value))} required />
{/* Checkbox */}
setOpenToAll(checked as boolean)} /> Open to all departments
{/* Range Display and Actions */}
Range:{' '} {range?.from && format(range.from, 'MMMM dd, yyyy')} -{' '} {range?.to && format(range.to, 'MMMM dd, yyyy')}
Cancel Schedule meetings
); } export default EventCalendar;