@vertisanpro/flowbite-react
Version:
Non-Official React components built for Flowbite and Tailwind CSS
10 lines (9 loc) • 745 B
JavaScript
import { twMerge } from '@vertisanpro/tailwind-merge';
import React from 'react';
import { mergeDeep } from '../../helpers/merge-deep';
import { getTheme } from '../../theme-store';
export const FooterIcon = ({ ariaLabel, className, href, icon: Icon, theme: customTheme = {}, ...props }) => {
const theme = mergeDeep(getTheme().footer.icon, customTheme);
return (React.createElement("div", null, href ? (React.createElement("a", { "aria-label": ariaLabel, "data-testid": "flowbite-footer-icon", href: href, className: twMerge(theme.base, className), ...props },
React.createElement(Icon, { className: theme.size }))) : (React.createElement(Icon, { "data-testid": "flowbite-footer-icon", className: theme.size, ...props }))));
};