'use client'; import {SearchIcon, XIcon} from 'lucide-react'; import React from 'react'; import { SearchField as AriaSearchField, type SearchFieldProps as AriaSearchFieldProps, type ValidationResult } from 'react-aria-components/SearchField'; import {Description, FieldError, FieldGroup, Input, Label} from './Field'; import {composeTailwindRenderProps} from './utils'; import {FieldButton} from './FieldButton'; export interface SearchFieldProps extends AriaSearchFieldProps { label?: string; description?: string; errorMessage?: string | ((validation: ValidationResult) => string); placeholder?: string; } export function SearchField({ label, description, errorMessage, placeholder, ...props }: SearchFieldProps) { return ( {label && } {description && {description}} {errorMessage} ); }