import { useState } from "preact/hooks"; export interface SearchBarProps { value: string; onChange: (value: string) => void; onSubmit: () => void; } export function SearchBar(props: SearchBarProps) { const { value, onChange, onSubmit } = props; return (