UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

13 lines (12 loc) 807 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FooterLink = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const tailwind_merge_1 = require("tailwind-merge"); const merge_deep_1 = require("../../helpers/merge-deep"); const theme_store_1 = require("../../theme-store"); const FooterLink = ({ as: Component = 'a', children, className, href, theme: customTheme = {}, ...props }) => { const theme = (0, merge_deep_1.mergeDeep)((0, theme_store_1.getTheme)().footer.groupLink.link, customTheme); return ((0, jsx_runtime_1.jsx)("li", { className: (0, tailwind_merge_1.twMerge)(theme.base, className), children: (0, jsx_runtime_1.jsx)(Component, { href: href, className: theme.href, ...props, children: children }) })); }; exports.FooterLink = FooterLink;