import React from "react"; import { SearchField, type SearchFieldProps, cn } from "heroui-native"; export interface NSearchFieldProps extends Omit { placeholder?: string; /** Hides the magnifier at the start of the field. */ hideSearchIcon?: boolean; /** Hides the clear button that appears once there is text. */ hideClearButton?: boolean; groupClassName?: string; inputClassName?: string; } export const NSearchField = React.memo( ({ placeholder = "Search...", hideSearchIcon = false, hideClearButton = false, className, groupClassName, inputClassName, ...props }) => { return ( {!hideSearchIcon && } {!hideClearButton && } ); }, ); NSearchField.displayName = "NSearchField";