import React from "react"; import { SvgSymbolContext } from "./svg-symbol"; export const SymbolContextWidget: React.FC<{ ctx: SvgSymbolContext; onChange: (value: SvgSymbolContext) => void; }> = ({ ctx, onChange }) => { const updateCtx = (updates: Partial) => { onChange({ ...ctx, ...updates }); }; return (

updateCtx({ stroke: e.target.value })} id="stroke" />{" "} updateCtx({ fill: e.target.value })} id="fill" />{" "}

); };