import React from "react"; interface BrowseSearchInputProps { onSearchChanged: (txt: string) => void; } export const BrowseSearchInput = ({ onSearchChanged }: BrowseSearchInputProps) => { let currentInput = ""; function onInput(e: React.FormEvent) { e.preventDefault(); onSearchChanged(currentInput); } function onInputChange(e: React.FormEvent) { currentInput = (e.target as any).value; } return (
); };