hoda-react
Version:
<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <
12 lines (11 loc) • 613 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import classNames from 'classnames';
import { useTheme } from '../Flowbite/ThemeContext';
import { useSidebarContext } from './SidebarContext';
const SidebarCTA = ({ children, color = 'info', className, ...props }) => {
const { isCollapsed } = useSidebarContext();
const theme = useTheme().theme.sidebar.cta;
return (_jsx("div", { className: classNames(theme.base, theme.color[color], className), "data-testid": "sidebar-cta", hidden: isCollapsed, ...props, children: children }));
};
SidebarCTA.displayName = 'Sidebar.CTA';
export default SidebarCTA;