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