fui-fancyui
Version:
FancyUI Libary
51 lines (50 loc) • 1.13 kB
JavaScript
"use client";
import { jsx as e } from "react/jsx-runtime";
import d from "../../icons/SVGEyeCrossed/SVGEyeCrossed.js";
import f from "../../icons/SVGEyeOpen/SVGEyeOpen.js";
import m from "../FancySVGAtom/FancySVGAtom.js";
function S(n) {
const {
isShow: c,
onClick: l,
customEyeCrossed: y,
customEyeOpen: a,
themeType: s = "secondary",
layer: o,
externalStyle: r,
systemMessage: t,
sizeC: i = "xxs",
...p
} = n;
return /* @__PURE__ */ e("i", { onClick: l, ...p, children: c ? (
// the eye icon for the password type toggle
/* @__PURE__ */ e(
m,
{
sizeC: i,
themeType: s,
layer: o,
systemMessage: t,
externalStyle: r,
children: a ?? /* @__PURE__ */ e(f, {})
}
)
) : (
// the crossed out eye icon for the password type toggle
/* @__PURE__ */ e(
m,
{
sizeC: i,
themeType: s,
layer: o,
systemMessage: t,
isPassive: !1,
externalStyle: r,
children: y ?? /* @__PURE__ */ e(d, {})
}
)
) });
}
export {
S as default
};