UNPKG

@payfit/unity-components

Version:

24 lines (23 loc) • 871 B
import { useCardContext as e } from "../../../../../core/components/card/Card.context.js"; import { CardTitle as t } from "../../../../../core/components/card/parts/CardTitle.js"; import { useProposalCardContext as n } from "../ProposalCard.context.js"; import { forwardRef as r } from "react"; import { jsx as i } from "react/jsx-runtime"; //#region src/modules/ai-kit/components/proposal-card/parts/ProposalCardTitle.tsx var a = r(({ children: r, level: a = 3 }, o) => { let { isExpandable: s } = n(), { titleId: c } = e(); return s ? /* @__PURE__ */ i("span", { ref: o, className: "uy:typography-h3 uy:text-content-neutral uy:leading-none", "data-unity-slot": "card.title", id: c, children: r }) : /* @__PURE__ */ i(t, { ref: o, level: a, children: r }); }); a.displayName = "AIProposalCardTitle"; //#endregion export { a as AIProposalCardTitle };