@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
20 lines (19 loc) • 678 B
JavaScript
"use client";
import Hotkey from "../Hotkey/Hotkey.mjs";
import { memo, useMemo } from "react";
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
//#region src/Tooltip/TooltipContent.tsx
const TooltipContent = memo(({ title, hotkey, hotkeyProps }) => {
const resolvedHotkeyProps = useMemo(() => ({
compact: true,
...hotkeyProps
}), [hotkeyProps]);
return /* @__PURE__ */ jsxs(Fragment$1, { children: [title, hotkey ? /* @__PURE__ */ jsx(Hotkey, {
keys: hotkey,
...resolvedHotkeyProps
}) : null] });
});
TooltipContent.displayName = "TooltipContent";
//#endregion
export { TooltipContent as default };
//# sourceMappingURL=TooltipContent.mjs.map