mediahub-fe/components/project/notes-calendar.tsx

18 lines
331 B
TypeScript
Raw Permalink Normal View History

2024-11-26 03:09:48 +00:00
"use client"
import { useState } from "react"
import { Calendar } from "@/components/ui/calendar"
const NotesCalendar = () => {
const [date, setDate] = useState<Date | undefined>(new Date())
return (
<Calendar
mode="single"
selected={date}
onSelect={setDate}
/>
)
}
export default NotesCalendar;