import React from "react"; import { Box, Stack, Typography, Alert, Paper, alpha } from "@mui/material"; import { PlayArrow as PlayArrowIcon } from "@mui/icons-material"; import { Script } from "../types"; interface GuidancePanelProps { scenes: Script["scenes"]; } export const GuidancePanel: React.FC = ({ scenes }) => { const scenesNeedingAudio = scenes.filter((s) => !s.audioUrl).length; const allScenesHaveAudio = scenes.length > 0 && scenesNeedingAudio === 0; return ( What's Next? Generate Audio for Your Scenes For each scene below: If audio is missing: Click "Generate Audio" to create the audio file for that scene If audio exists: The scene is ready! You can download it or proceed to video generation Optional: Use "Preview Sample" to test voice and pacing before full generation {scenesNeedingAudio > 0 && ( 📢 {scenesNeedingAudio} scene{scenesNeedingAudio !== 1 ? "s" : ""} need{scenesNeedingAudio === 1 ? "s" : ""} audio generation. Scroll down and click the "Generate Audio" buttons below! )} {allScenesHaveAudio && ( ✅ All scenes have audio! Your podcast is ready. You can download individual scenes or proceed to video generation. )} ); };