"use client"; interface GenerationControlsProps { cfgScale: number; onCfgScaleChange: (v: number) => void; inferenceSteps: number; onInferenceStepsChange: (v: number) => void; onGenerate: () => void; isGenerating: boolean; wordCount: number; } export default function GenerationControls({ cfgScale, onCfgScaleChange, inferenceSteps, onInferenceStepsChange, onGenerate, isGenerating, wordCount, }: GenerationControlsProps) { const estimatedSeconds = Math.ceil(wordCount / 50); const estimatedDisplay = wordCount === 0 ? "—" : estimatedSeconds < 60 ? `~${estimatedSeconds}s` : `~${Math.floor(estimatedSeconds / 60)}m ${estimatedSeconds % 60}s`; return (