import { useState } from "preact/hooks"; import { ChatStore, addTotalCost } from "./app"; interface TTSProps { chatStore: ChatStore; setChatStore: (cs: ChatStore) => void; text: string; } export default function TTSButton(props: TTSProps) { const [generating, setGenerating] = useState(false); return ( ); }