import state, { useSelector } from "state" import styled from "styles" import { Menu } from "react-feather" export default function Toolbar() { const activeTool = useSelector((state) => state.whenIn({ selecting: "select", dot: "dot", circle: "circle", ellipse: "ellipse", ray: "ray", line: "line", polyline: "polyline", rectangle: "rectangle", }) ) return (
) } const ToolbarContainer = styled("div", { gridArea: "toolbar", userSelect: "none", borderBottom: "1px solid black", display: "flex", alignItems: "center", justifyContent: "space-between", backgroundColor: "$panel", gap: 8, fontSize: "$1", zIndex: 200, }) const Section = styled("div", { whiteSpace: "nowrap", overflow: "hidden", display: "flex", }) const Button = styled("button", { display: "flex", alignItems: "center", cursor: "pointer", font: "$ui", fontSize: "$ui", height: "40px", outline: "none", borderRadius: 0, border: "none", padding: "0 12px", background: "none", "&:hover": { backgroundColor: "$hint", }, "& svg": { height: 16, width: 16, }, variants: { isSelected: { true: { color: "$selected", }, false: {}, }, }, })