import React from "react"; import { getContrastYIQ } from "./colorPickerUtils"; interface HotkeyLabelProps { color: string; keyLabel: string | number; isCustomColor?: boolean; isShade?: boolean; } const HotkeyLabel = ({ color, keyLabel, isCustomColor = false, isShade = false, }: HotkeyLabelProps) => { return (
{isShade && "⇧"} {keyLabel}
); }; export default HotkeyLabel;