UNPKG

@elacity-js/uikit

Version:

React / Material UI Design kit for Elacity project

9 lines (6 loc) 728 B
import { jsxs, jsx } from 'react/jsx-runtime'; import { Box, Typography, Button } from '@mui/material'; import { RouterLink } from './Link.js'; var Appeal = ({ title, subtitle, label, children, navigateTo, Icon }) => (jsxs(Box, Object.assign({ sx: { textAlign: 'center', my: 4, px: 2 } }, { children: [Icon && jsx(Icon, {}), title && (jsx(Typography, Object.assign({ variant: "h5" }, { children: title }))), subtitle && (jsx(Typography, Object.assign({ variant: "body2" }, { children: subtitle }))), children, navigateTo && (jsx(Button, Object.assign({ variant: "contained", component: RouterLink, to: navigateTo, sx: { mt: 2 } }, { children: label })))] }))); export { Appeal as default }; //# sourceMappingURL=Appeal.js.map