UNPKG

@prezly/theme-kit-ui

Version:
30 lines (29 loc) 1.55 kB
'use client'; import React from "react"; import { CookieConsentLink } from '@prezly/analytics-nextjs'; import { MadeWithPrezly } from "../MadeWithPrezly/index.mjs"; import { DataRequestLink } from "./DataRequestLink.mjs"; export function SubFooter(_ref) { var _intl$actionsStartUs, _intl$actionsStopUsi; var { privacyRequestLink, isWhiteLabeled, newsroomDisplayName, intl = {} } = _ref; return /*#__PURE__*/React.createElement("div", { className: "px-12 py-6 bg-gray-950 flex flex-col md:flex-row md:items-center justify-between gap-6" }, /*#__PURE__*/React.createElement("div", { className: "flex items-center gap-6" }, /*#__PURE__*/React.createElement(DataRequestLink, { className: "text-white text-sm underline font-medium", privacyRequestLink: privacyRequestLink, intl: intl }), /*#__PURE__*/React.createElement(CookieConsentLink, { className: "text-white text-sm underline font-medium", startUsingCookiesLabel: (_intl$actionsStartUs = intl['actions.startUsingCookies']) !== null && _intl$actionsStartUs !== void 0 ? _intl$actionsStartUs : 'Start using cookies', stopUsingCookiesLabel: (_intl$actionsStopUsi = intl['actions.stopUsingCookies']) !== null && _intl$actionsStopUsi !== void 0 ? _intl$actionsStopUsi : 'Stop using cookies' })), /*#__PURE__*/React.createElement("p", { className: "text-white text-sm font-medium" }, "Copyright \xA9 ", new Date().getFullYear(), " ", newsroomDisplayName), !isWhiteLabeled && /*#__PURE__*/React.createElement(MadeWithPrezly, null)); }