import { c, classy } from '@onfido/castor'; import { Input, InputProps } from '@onfido/castor-react'; import React from 'react'; import { MaybeIcon } from '../../internal'; import { withRef } from '../../utils'; /** * `Search` by default uses an `Icon` that requires `Icons` (SVG sprite) to be * included in your app. * * https://github.com/onfido/castor-icons#use-with-plain-code * * You may also provide any other SVG element via the `icon` prop, but using * Castor iconography is recommended. */ export const Search = withRef(function Search( { className, icon, style, ...restProps }: SearchProps, ref: SearchProps['ref'] ) { return (
); }); export type SearchProps = Omit & { icon?: JSX.Element; };