'use client'; import React from 'react'; import { TimeField as AriaTimeField, type TimeFieldProps as AriaTimeFieldProps, type TimeValue, type ValidationResult } from 'react-aria-components/TimeField'; import {DateInput} from './DateField'; import {Description, FieldError, Label} from './Field'; import {composeTailwindRenderProps} from './utils'; export interface TimeFieldProps extends AriaTimeFieldProps { label?: string; description?: string; errorMessage?: string | ((validation: ValidationResult) => string); } export function TimeField({ label, description, errorMessage, ...props }: TimeFieldProps) { return ( {description && {description}} {errorMessage} ); }