import { useRef, useState } from "react"; import { HiLightBulb } from "react-icons/hi"; interface Props { prompt: string; onChange: (value: string) => void; } export const InputGeneration: React.FC = ({ prompt, onChange }) => { const input = useRef(null); return (
input.current?.focus()} >
onChange(e.target.value)} />
); };