import { useStore } from '@nanostores/react'; import { workspaceStore } from '~/lib/stores/workspace'; interface ArtifactProps { messageId: string; onClick?: () => void; } export function Artifact({ messageId, onClick }: ArtifactProps) { const artifacts = useStore(workspaceStore.artifacts); const artifact = artifacts[messageId]; return ( ); }