import React from "react"; import { AriaSearchFieldProps } from "@react-aria/searchfield"; import { AriaProps, FieldInputProps } from "../../../types"; import { Input, Label, Message, ErrorMessage, SearchField, ComboInput, } from "../../Fields"; import { IconButton } from "../../Buttons/IconButton"; import { useTranslations } from "@hooks/useTranslations"; export interface SearchInputProps extends AriaProps, FieldInputProps {} /** SearchInput component. */ export const SearchInput = React.forwardRef(function SearchInput( props: SearchInputProps, ref: React.Ref ) { const { size = "medium", label, message, error, ...rest } = props; const t = useTranslations(); return ( {label && } {message && {message}} {error} ); }); export default SearchInput;