import './AIGuideContent.css'; import { AIGuideRegenerate } from './AIGuideRegenerate'; import { cn } from '../../lib/classname'; import { LoadingChip } from '../LoadingChip'; type AIGuideContentProps = { html: string; onRegenerate?: (prompt?: string) => void; isLoading?: boolean; }; export function AIGuideContent(props: AIGuideContentProps) { const { html, onRegenerate, isLoading } = props; return (
{isLoading && !html && (
)} {onRegenerate && !isLoading && (
)}
); }