import { Search } from '@mui/icons-material'; import { FormControl, InputAdornment } from '@mui/material'; import type { FocusEventHandler, FormEventHandler } from 'react'; import { InputCard } from '../../components/Card/InputCard.js'; import { useHeaderHeight } from '../../stores/header/useHeaderStore.js'; import { Input, StickySearchInputContainer } from './SearchInput.style.js'; interface SearchInputProps { name?: string; value?: string; placeholder?: string; onChange?: FormEventHandler; onBlur?: FocusEventHandler; } export const SearchInput = ({ name, placeholder, onChange, onBlur, value, }: SearchInputProps) => { return ( } inputProps={{ inputMode: 'search', onChange, onBlur, name, value, maxLength: 128, }} autoComplete="off" /> ); }; export const StickySearchInput = ({ ...rest }: SearchInputProps) => { const { headerHeight } = useHeaderHeight(); return ( ); };