'use client'; /** * Block Container * * Wrapper for ephemeral blocks with animation, close button, and sizing. */ import { ReactNode } from 'react'; import { X } from 'lucide-react'; import { useSwiftStore } from '@/stores/swift-store'; import type { BlockSize } from '@/lib/swift/types'; interface BlockContainerProps { title: string; size?: BlockSize; children: ReactNode; } const SIZE_CLASSES: Record = { sm: 'max-w-sm', md: 'max-w-md', lg: 'max-w-2xl', full: 'max-w-4xl', }; export function BlockContainer({ title, size = 'md', children }: BlockContainerProps) { const { closeBlock } = useSwiftStore(); return (
{/* Header */}

{title}

{/* Content */}
{children}
); }