import React from 'react'; export default function CanvasArea() { return (
{ if (canvas && canvas.parentElement) { canvas.width = canvas.parentElement.clientWidth - 40; canvas.height = canvas.parentElement.clientHeight - 40; const ctx = canvas.getContext('2d'); if (ctx) { ctx.fillStyle = '#ffffff'; ctx.fillRect(0, 0, canvas.width, canvas.height); } } }} />
); }