@anoki/fse-ui
Version:
FSE UI components library
81 lines (80 loc) • 2.46 kB
JavaScript
import { j as e } from "./index.es237.js";
import './components/navigations/CookieBanner/CookieBanner.css';/* empty css */
import { Row as n } from "./index.es116.js";
import { Button as t } from "./index.es32.js";
const p = ({
onlyTechniciansLabel: c,
text: l,
textSecond: x,
acceptLabel: a,
onPressCookieLink: d,
hasThirdPartyCookies: o = !1,
hasTechnicalCookies: r = !0,
onPressAcceptThirdPartCookie: m,
onPressAcceptTechnicalCookie: i,
onCloseBanner: s
}) => /* @__PURE__ */ e.jsx("div", { className: "ui-cookie-banner-container-fixed", children: /* @__PURE__ */ e.jsxs(
n,
{
gap: "x20",
alignItems: "center",
justifyContent: "space-between",
className: "ui-cookie-banner-container bg-slate-20",
children: [
/* @__PURE__ */ e.jsx(n, { children: /* @__PURE__ */ e.jsxs("div", { className: "ui-cookie-banner-text-container", children: [
/* @__PURE__ */ e.jsx("span", { className: "text-white fs-7", children: l }),
" ",
/* @__PURE__ */ e.jsxs("div", { children: [
/* @__PURE__ */ e.jsx("span", { className: "text-white fs-7", children: x }),
" ",
/* @__PURE__ */ e.jsx(
"span",
{
className: "text-white fs-7 ui-cookie-banner-text-link",
onClick: d,
children: "cookie policy"
}
)
] })
] }) }),
r && o && /* @__PURE__ */ e.jsxs(n, { gap: "x16", className: "cookie-banner-buttons-container", children: [
/* @__PURE__ */ e.jsx(
t,
{
className: "ui-cookie-banner-first-button",
onClick: () => {
i(), s();
},
children: c
}
),
/* @__PURE__ */ e.jsx(
t,
{
className: "ui-cookie-banner-second-button",
variant: "secondary",
onClick: () => {
m(), i(), s();
},
children: a
}
)
] }),
r && !o && /* @__PURE__ */ e.jsx(n, { gap: "x16", className: "cookie-banner-buttons-container", children: /* @__PURE__ */ e.jsx(
t,
{
className: "ui-cookie-banner-second-button",
variant: "secondary",
onClick: () => {
i(), s();
},
children: a
}
) })
]
}
) });
export {
p as CookieBanner
};
//# sourceMappingURL=index.es7.js.map