import { MagnifyingGlassIcon } from '@radix-ui/react-icons'; import { ComponentProps, forwardRef, useImperativeHandle, useRef } from 'react'; import { theme } from '../stitches.config'; export const SearchBar = forwardRef>( (props, ref) => { const input = useRef(null); useImperativeHandle(ref, () => input.current!); return (
input.current?.focus()} >
); }, );