{"version":3,"file":"TooltipContent.mjs","names":[],"sources":["../../src/Tooltip/TooltipContent.tsx"],"sourcesContent":["'use client';\n\nimport { memo, type ReactNode, useMemo } from 'react';\n\nimport Hotkey, { type HotkeyProps } from '@/Hotkey';\n\ntype TooltipContentProps = {\n  hotkey?: string;\n  hotkeyProps?: Omit<HotkeyProps, 'keys'>;\n  title: ReactNode;\n};\n\nconst TooltipContent = memo<TooltipContentProps>(({ title, hotkey, hotkeyProps }) => {\n  const resolvedHotkeyProps = useMemo(\n    () => ({\n      compact: true,\n      ...hotkeyProps,\n    }),\n    [hotkeyProps],\n  );\n\n  return (\n    <>\n      {title}\n      {hotkey ? <Hotkey keys={hotkey} {...resolvedHotkeyProps} /> : null}\n    </>\n  );\n});\n\nTooltipContent.displayName = 'TooltipContent';\n\nexport default TooltipContent;\n"],"mappings":";;;;;AAYA,MAAM,iBAAiB,MAA2B,EAAE,OAAO,QAAQ,kBAAkB;CACnF,MAAM,sBAAsB,eACnB;EACL,SAAS;EACT,GAAG;EACJ,GACD,CAAC,YAAY,CACd;AAED,QACE,qBAAA,YAAA,EAAA,UAAA,CACG,OACA,SAAS,oBAAC,QAAD;EAAQ,MAAM;EAAQ,GAAI;EAAuB,CAAA,GAAG,KAC7D,EAAA,CAAA;EAEL;AAEF,eAAe,cAAc"}