@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
27 lines (26 loc) • 963 B
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import classnames from "classnames";
const PriceTable = ({ children })=>/*#__PURE__*/ jsx("div", {
className: "cobalt-PriceTable",
children: children
});
const PriceTableRow = ({ label, value, discounted = false })=>/*#__PURE__*/ jsxs("div", {
className: "cobalt-PriceTable__Row",
children: [
/*#__PURE__*/ jsx("div", {
className: "cobalt-PriceTable__Label",
children: label
}),
/*#__PURE__*/ jsx("div", {
className: classnames("cobalt-PriceTable__Value", {
"cobalt-PriceTable__Value--discount": discounted
}),
children: value
})
]
});
PriceTable.Row = PriceTableRow;
const components_PriceTable = PriceTable;
export default components_PriceTable;
export { PriceTable, PriceTableRow };
//# sourceMappingURL=index.js.map