import React, { useState } from 'react'; import { generateRoast } from '../services/roastClient'; import { ENABLE_ROAST_GENERATOR } from '../lib/flags'; export const RoastGenerator: React.FC = () => { if (!ENABLE_ROAST_GENERATOR) return null; const [input, setInput] = useState(''); const [output, setOutput] = useState(''); const [loading, setLoading] = useState(false); const handleCritique = async () => { if (!input.trim()) return; setLoading(true); try { const result = await generateRoast(input); setOutput(result); } finally { setLoading(false); } }; return (
Quick critique

Preliminary “truth audit” (AI-assisted)

Paste a short excerpt from a policy, whitepaper, control description, or vendor claim. This produces a rough critique to help you decide whether a custom dossier is worthwhile. Do not paste secrets.