import {getSketcherAction} from "../actions";
import React, {useContext} from "react";
import {SketcherAppContext} from "./SketcherAppContext";
export function SketcherActionButton({actionId, text=false}) {
const action = getSketcherAction(actionId);
if (!action) {
return ?{actionId}?;
}
const ctx = useContext(SketcherAppContext);
const Icon = action.icon;
return ;
}