import { useState } from 'react' type Props = { onSearch: (username: string) => void } export function SearchScreen({ onSearch }: Props) { const [value, setValue] = useState('') const handleSubmit = (e: React.FormEvent) => { e.preventDefault() const trimmed = value.trim() if (trimmed) onSearch(trimmed) } return (
Generate your profile widget