import React from 'react'; import { Shape, COLORS, STROKE_WIDTHS, FONT_SIZES } from '../types'; interface PropertiesPanelProps { selectedShape: Shape | null; updateShape: (id: string, attrs: Partial) => void; } const PropertiesPanel: React.FC = ({ selectedShape, updateShape, }) => { if (!selectedShape) { return (
👆

Select something!

Click an item to tweak it.

); } return (

Edit {selectedShape.type}

Color Pick one

{COLORS.map((color) => (
{(selectedShape.type === 'rect' || selectedShape.type === 'arrow') && (

Thickness

{STROKE_WIDTHS.map((width) => ( ))}
)} {selectedShape.type === 'text' && ( <>

Size

Text