import "./ToolIcon.scss";
import React from "react";
type ToolIconProps =
| {
type: "button";
icon: React.ReactNode;
"aria-label": string;
title?: string;
name?: string;
id?: string;
onClick?(): void;
}
| {
type: "radio";
icon: React.ReactNode;
title?: string;
name?: string;
id?: string;
checked: boolean;
onChange?(): void;
};
export function ToolIcon(props: ToolIconProps) {
if (props.type === "button")
return (
);
return (
);
}