export default function ListSearchInput({ value, onChange, resultCount, totalCount }) { const hasSearch = value.trim().length > 0; return (
onChange(event.target.value)} placeholder="Search list" autoComplete="off" /> {hasSearch && ( )}
{hasSearch && (

{resultCount} of {totalCount} item{totalCount === 1 ? "" : "s"}

)}
); }