import { memo, useState } from 'react' import { AppWindow, ExternalLink, RotateCw } from 'lucide-react' import { Button } from '@/components/ui/button' interface ArtifactPartProps { title: string src: string path?: string } /** Renders the sandboxed HTML document produced by an `ocm` `show_artifact` call. */ export const ArtifactPart = memo(function ArtifactPart({ title, src, path }: ArtifactPartProps) { const [reloadKey, setReloadKey] = useState(0) return (