import type { ChatStatus } from '../hooks/useChat.ts'; type PreviewProps = { heading: string; status: ChatStatus; applied: boolean; }; export function Preview({ heading, status, applied }: PreviewProps) { return (
preview.wursor.dev {applied && Applied to your site ✓}
{status === 'working' ? (
Applying your change…
) : (

{heading}

This is a live preview of your sandbox — the real site stays untouched until you approve.

)}
); }