import React from 'react'; import { useCanvasStore } from '../../store/canvasStore'; import type { TextElement } from '../../types'; import { FONT_FAMILIES } from '../../types'; interface TextInspectorProps { element: TextElement; } const TextInspector: React.FC = ({ element }) => { const { updateElement, saveToHistory } = useCanvasStore(); const update = (updates: Partial) => { updateElement(element.id, updates); }; const updateProps = (props: Partial) => { update({ props: { ...element.props, ...props } }); }; return (
{/* Text */}