UNPKG

bananas-commerce-admin

Version:

What's this, an admin for apes?

15 lines 646 B
import React from "react"; import MuiCardContent from "@mui/material/CardContent"; import Stack from "@mui/material/Stack"; import { useCardContext } from "../../contexts/CardContext"; export const CardContent = ({ children, ...props }) => { const { isCompact } = useCardContext(); return (React.createElement(MuiCardContent, { sx: { px: isCompact ? 2 : 3, pb: isCompact ? "calc(2 * var(--mui-spacing)) !important" : 3, ...props.sx, }, ...props }, React.createElement(Stack, { gap: isCompact ? 1 : 3 }, children))); }; export default CardContent; //# sourceMappingURL=CardContent.js.map