import { Layout } from '../../types/layout.types'; import { CanvasSize } from '../../types/canvas.types'; interface LayoutSelectorProps { isOpen: boolean; currentCanvasSize: CanvasSize; onLayoutSelect: (layout: Layout) => void; onClose: () => void; } // Placeholder layouts - will be replaced with real data from Figma const PLACEHOLDER_LAYOUTS: Layout[] = [ { id: 'layout-1', name: 'Layout 1', thumbnail: 'https://via.placeholder.com/200x150?text=Layout+1', canvasSize: '1200x675', objects: [] }, { id: 'layout-2', name: 'Layout 2', thumbnail: 'https://via.placeholder.com/200x150?text=Layout+2', canvasSize: '1200x675', objects: [] } ]; export default function LayoutSelector({ isOpen, currentCanvasSize, onLayoutSelect, onClose }: LayoutSelectorProps) { if (!isOpen) return null; // Filter layouts by current canvas size const filteredLayouts = PLACEHOLDER_LAYOUTS.filter( layout => layout.canvasSize === currentCanvasSize ); return ( <> {/* Backdrop */}
{/* Layout Menu */}
{/* Header */}

Choose a Layout

For {currentCanvasSize === '1200x675' ? '1200×675' : currentCanvasSize === 'linkedin' ? 'LinkedIn (1200×627)' : 'HF (1160×580)'}

{/* Layouts Grid */} {filteredLayouts.length > 0 ? (
{filteredLayouts.map((layout) => ( ))}
) : (

No layouts available for this canvas size yet.

)}
); }