import { MWQuery } from "@/backend/metadata/types/mw"; import { Icon, Icons } from "./Icon"; import { TextInputControl } from "./text-inputs/TextInputControl"; export interface SearchBarProps { placeholder?: string; onChange: (value: MWQuery, force: boolean) => void; onUnFocus: () => void; value: MWQuery; } export function SearchBarInput(props: SearchBarProps) { function setSearch(value: string) { props.onChange( { ...props.value, searchQuery: value, }, false ); } return (