import { createRequire as _createRequire } from 'node:module';
const require = _createRequire(import.meta.url);
import {
  Box_default,
  Link,
  PointerSmallIcon
} from "./chunk-YL4347CI.js";
import {
  require_react
} from "./chunk-TODKQSCF.js";
import {
  require_lib
} from "./chunk-MTT3QXBC.js";
import {
  __toESM,
  init_esm_shims
} from "./chunk-EXLZF52D.js";

// ../cli-astro-commands/src/components/PlatformLink/PlatformLink.tsx
init_esm_shims();
var import_react = __toESM(require_react(), 1);
var import_variant = __toESM(require_lib(), 1);
var PlatformLink = ({ url, platform }) => {
  const label = (0, import_variant.match)(platform, {
    editor: (0, import_variant.constant)("Editor"),
    dashboard: (0, import_variant.constant)("Dashboard"),
    site: (0, import_variant.constant)("Site")
  });
  return /* @__PURE__ */ import_react.default.createElement(Box_default, { marginRight: 1 }, /* @__PURE__ */ import_react.default.createElement(PointerSmallIcon, null), /* @__PURE__ */ import_react.default.createElement(Box_default, { marginLeft: 1 }, /* @__PURE__ */ import_react.default.createElement(Link, { url }, label)));
};

export {
  PlatformLink
};
//# sourceMappingURL=chunk-VKQEX5GC.js.map