import { jsx as i, jsxs as m } from "react/jsx-runtime";
import { classNames as p } from "./index-classNames.js";
import { Icon as d } from "./index-Icon.js";
import { IconNames as h } from "./index-IconNames.js";
import { Link as a } from "./index-Link.js";
import "react";
import r from "./index-LinkConditional.module.scss.js";
const y = (o) => {
  const {
    childFullWidth: l,
    childVisible: n,
    children: t,
    linkProps: e,
    linkText: s,
    onDeleteClick: c
  } = o;
  return n ? m("span", {
    className: p(r.container, l ? r.childFullWidth : ""),
    children: [t, i(d, {
      style: {
        cursor: "pointer"
      },
      onClick: c,
      children: h.trash
    })]
  }) : i(a, {
    ...e,
    children: s
  });
};
export {
  y as LinkConditional
};
