UNPKG

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) 504 B
import { jsx as _jsx } from "react/jsx-runtime"; import classNames from 'classnames'; import { useTheme } from '../Flowbite/ThemeContext'; import { useModalContext } from './ModalContext'; export const ModalFooter = ({ children, className, ...props }) => { const { popup } = useModalContext(); const theme = useTheme().theme.modal.footer; return (_jsx("div", { className: classNames(theme.base, { [theme.popup]: !popup, }, className), ...props, children: children })); };