'use strict';
import { jsx } from 'react/jsx-runtime';
import { Link } from '../../../../fd-component-toolbox/link/Link.js';

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {
  value,
  configurable: true
});
function DropdownMenuItemTitle({
  label,
  url,
  onDropdownCloseChange
}) {
  if (url) {
    return /* @__PURE__ */jsx("div", {
      className: "bg-fd-tertiary-700 text-fd-tertiary-50 flex min-w-52 cursor-pointer items-center rounded-sm border-none px-4 py-2 text-sm",
      onClick: onDropdownCloseChange,
      children: /* @__PURE__ */jsx(Link, {
        href: url,
        className: "font-bold",
        children: label
      })
    });
  }
  return void 0;
}
__name(DropdownMenuItemTitle, "DropdownMenuItemTitle");

export { DropdownMenuItemTitle as default };
