UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

53 lines 1.14 kB
import { c as _c } from "react-compiler-runtime"; import { forwardRef } from "react"; import classnames from "classnames"; import { jsx as _jsx } from "react/jsx-runtime"; const CardButton = /*#__PURE__*/forwardRef((t0, ref) => { const $ = _c(11); let children; let className; let props; if ($[0] !== t0) { ({ className, children, ...props } = t0); $[0] = t0; $[1] = children; $[2] = className; $[3] = props; } else { children = $[1]; className = $[2]; props = $[3]; } let t1; if ($[4] !== className) { t1 = classnames("bf-card-button bf-title-link", className); $[4] = className; $[5] = t1; } else { t1 = $[5]; } let t2; if ($[6] !== children || $[7] !== props || $[8] !== ref || $[9] !== t1) { t2 = /*#__PURE__*/_jsx("button", { type: "button", ...props, className: t1, ref: ref, children: children }); $[6] = children; $[7] = props; $[8] = ref; $[9] = t1; $[10] = t2; } else { t2 = $[10]; } return t2; }); CardButton.displayName = "Card.Button"; export default CardButton;