import React from 'react'; interface CanvasGridOverlayProps { showGrid: boolean; showSafeZone: boolean; width: number; height: number; } /** * CanvasGridOverlay — Renders SVG grid lines and safe zone guides on the canvas. * Grid: 12-column grid with horizontal thirds. * Safe Zone: 10% inset rectangle (title-safe area for broadcast). */ export const CanvasGridOverlay: React.FC = ({ showGrid, showSafeZone, width, height, }) => { if (!showGrid && !showSafeZone) return null; return ( {/* Grid lines */} {showGrid && ( {/* Vertical thirds */} {/* Horizontal thirds */} {/* Center crosshair */} {/* Center dot */} )} {/* Safe Zone (10% inset — broadcast title-safe area) */} {showSafeZone && ( {/* Action-safe (5%) */} {/* Title-safe (10%) */} {/* Labels */} ACTION SAFE 5% TITLE SAFE 10% )} ); };