import React from 'react'; import { Stack, Box, Typography, Tooltip, IconButton, Chip, alpha } from '@mui/material'; import { AutoAwesome as AutoAwesomeIcon, HelpOutline as HelpOutlineIcon, AttachMoney as AttachMoneyIcon, } from '@mui/icons-material'; import { Knobs } from '../types'; interface CreateHeaderProps { subscription: any; duration: number; speakers: number; knobs: Knobs; estimatedCost: { ttsCost: number; avatarCost: number; videoCost: number; researchCost: number; total: number; }; } export const CreateHeader: React.FC = ({ subscription, duration, speakers, knobs, estimatedCost, }) => { return ( Create New Podcast Episode Tips for best results: • Provide one clear topic OR a single blog URL (we won't auto-run anything).
• Keep it concise—one sentence topic works best.
• We start analysis only after you confirm, so you stay in control.
} arrow placement="top" componentsProps={{ tooltip: { sx: { bgcolor: "#0f172a", color: "#ffffff", maxWidth: 300, fontSize: "0.875rem", p: 1.5, boxShadow: "0 4px 12px rgba(0,0,0,0.15)", }, }, arrow: { sx: { color: "#0f172a", }, }, }} >
1 ? "s" : ""}`} size="small" sx={{ background: alpha("#0f172a", 0.06), color: "#0f172a", fontWeight: 600, border: "1px solid rgba(15, 23, 42, 0.12)", fontSize: "0.75rem", height: 26, cursor: "help", }} /> Estimated Cost Breakdown: • Audio Generation: ${estimatedCost.ttsCost}
• Avatar Creation: ${estimatedCost.avatarCost}
• Video Rendering: ${estimatedCost.videoCost}
• Research: ${estimatedCost.researchCost}
Total: ${estimatedCost.total} Based on {duration} min, {speakers} speaker{speakers > 1 ? "s" : ""}, {knobs.bitrate === "hd" ? "HD" : "standard"} quality
} arrow placement="top" componentsProps={{ tooltip: { sx: { bgcolor: "#0f172a", color: "#ffffff", maxWidth: 280, fontSize: "0.875rem", p: 1.5, boxShadow: "0 4px 12px rgba(0,0,0,0.15)", }, }, arrow: { sx: { color: "#0f172a", }, }, }} > } label={`Est. $${estimatedCost.total}`} size="small" sx={{ background: "linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%)", color: "#059669", fontWeight: 600, border: "1px solid rgba(16, 185, 129, 0.2)", fontSize: "0.75rem", height: 26, cursor: "help", }} />
); };