UNPKG

bananas-commerce-admin

Version:

What's this, an admin for apes?

15 lines 1.09 kB
import React from "react"; import CancelIcon from "@mui/icons-material/Cancel"; import CheckCircleIcon from "@mui/icons-material/CheckCircle"; import { TableCell } from "../../../components/Table/TableCell"; import { NavigatingTableRow } from "../../../components/Table/TableRow"; import { SHOW_PRICE_RULES } from "../flags"; export const PriceListRow = ({ priceList }) => (React.createElement(NavigatingTableRow, { route: "pricing.price_list:detail", routeParams: { id: priceList.id } }, React.createElement(TableCell, null, priceList.name), React.createElement(TableCell, null, priceList.site_code), React.createElement(TableCell, null, priceList.channel), React.createElement(TableCell, null, priceList.currency), SHOW_PRICE_RULES && React.createElement(TableCell, null, priceList.price_rule ?? "—"), React.createElement(TableCell, { align: "right" }, priceList.is_active ? React.createElement(CheckCircleIcon, { color: "success" }) : React.createElement(CancelIcon, { color: "error" })))); export default PriceListRow; //# sourceMappingURL=PriceListRow.js.map