import React from 'react'; import { Button, Calendar, CalendarCell, CalendarGrid, DateInput, DatePicker as RACDatePicker, type DatePickerProps as RACDatePickerProps, DateSegment, type DateValue, Dialog, FieldError, Group, Heading, Label, Popover, Text, type ValidationResult, } from 'react-aria-components'; export interface DatePickerProps extends RACDatePickerProps { label?: string; description?: string; errorMessage?: string | ((validation: ValidationResult) => string); } export function DatePicker({ label, description, errorMessage, ...props }: DatePickerProps) { return ( {(segment) => } {description && {description}} {errorMessage}
{(date) => }
); }