import React from 'react'; import { Button, ComboBox as RACComboBox, type ComboBoxProps as RACComboBoxProps, FieldError, Input, Label, ListBox, ListBoxItem, type ListBoxItemProps, Popover, Text, type ValidationResult, } from 'react-aria-components'; export interface ComboBoxProps extends Omit, 'children'> { label?: string; description?: string | null; errorMessage?: string | ((validation: ValidationResult) => string); children: React.ReactNode | ((item: T) => React.ReactNode); } export function ComboBox({ label, description, errorMessage, children, ...props }: ComboBoxProps) { return (
{description && {description}} {errorMessage} {children}
); } export function ComboBoxItem(props: ListBoxItemProps) { return ; }