import "./ToolIcon.scss"; import clsx from "clsx"; import { ToolButtonSize } from "./ToolButton"; type PenModeIconProps = { title?: string; name?: string; checked: boolean; onChange?(): void; zenModeEnabled?: boolean; isMobile?: boolean; penDetected: boolean; }; const DEFAULT_SIZE: ToolButtonSize = "medium"; const ICONS = { CHECKED: ( ), UNCHECKED: ( ), }; export const PenModeButton = (props: PenModeIconProps) => { if (!props.penDetected) { if (props.isMobile) { return null; } return (