@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
60 lines • 1.27 kB
JavaScript
import { c as _c } from "react-compiler-runtime";
import { forwardRef } from "react";
import classNames from "classnames";
import { faArrowRight } from "@fortawesome/free-solid-svg-icons/faArrowRight";
import Icon from "../Icon/Icon.js";
import { jsx as _jsx } from "react/jsx-runtime";
const BoxArrow = /*#__PURE__*/forwardRef((t0, ref) => {
const $ = _c(13);
let T0;
let t1;
let t2;
let t3;
let t4;
if ($[0] !== ref || $[1] !== t0) {
const {
external,
...props
} = t0;
T0 = Icon;
t1 = faArrowRight;
t2 = props;
t3 = ref;
t4 = classNames(props.className, "bf-box-arrow", {
"bf-box-arrow-external": external
});
$[0] = ref;
$[1] = t0;
$[2] = T0;
$[3] = t1;
$[4] = t2;
$[5] = t3;
$[6] = t4;
} else {
T0 = $[2];
t1 = $[3];
t2 = $[4];
t3 = $[5];
t4 = $[6];
}
let t5;
if ($[7] !== T0 || $[8] !== t1 || $[9] !== t2 || $[10] !== t3 || $[11] !== t4) {
t5 = /*#__PURE__*/_jsx(T0, {
icon: t1,
...t2,
ref: t3,
className: t4
});
$[7] = T0;
$[8] = t1;
$[9] = t2;
$[10] = t3;
$[11] = t4;
$[12] = t5;
} else {
t5 = $[12];
}
return t5;
});
BoxArrow.displayName = "Box.Arrow";
export default BoxArrow;