UNPKG

brightyui

Version:

Brighty UI library

14 lines 708 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import styles from '../../../src/styles/MenuCell.module.scss'; import { cnb } from 'cnbuilder'; import Typography from '../Typography/Typography'; import { EColors } from '../../types/EColors'; var MenuCell = function (_a) { var _b; var icon = _a.icon, title = _a.title, onClick = _a.onClick, active = _a.active; return (_jsxs("button", { className: cnb(styles.root, (_b = {}, _b[styles.root__active] = active, _b)), onClick: onClick, children: [icon, _jsx(Typography, { variant: 'pSmallRegular', color: EColors.text2, children: title })] })); }; export default MenuCell; //# sourceMappingURL=MenuCell.js.map