"use client" import type React from "react" import { forwardRef } from "react" import { Tooltip, TooltipContent, TooltipTrigger, } from "@/components/ui/tooltip" import { cn } from "@/lib/utils" interface IconButtonProps extends React.ComponentProps<"button"> { label: string /** Shown next to the label in the tooltip, e.g. "⌘B" */ shortcut?: string active?: boolean tooltipSide?: "top" | "bottom" | "left" | "right" size?: "sm" | "md" } /** Square icon button with a tooltip; the tooltip text is also its label */ export const IconButton = forwardRef( function IconButton( { label, shortcut, active = false, tooltipSide = "bottom", size = "md", className, children, ...props }, ref, ) { return ( {label} {shortcut && ( {shortcut} )} ) }, ) /** Thin vertical divider between toolbar groups */ export function ToolbarDivider() { return }