UNPKG

opt-table

Version:

A Responsive and Customizable Rich Table

14 lines 729 B
import { Grid, Typography } from "@mui/material"; import { utils } from "../../utils/date_utils"; import React from "react"; const TableDateComponent = (props) => { return (React.createElement(React.Fragment, null, props.date && (React.createElement(Grid, { container: true, direction: "column", alignItems: "center" }, React.createElement(Typography, { variant: "body2" }, utils.get_string_day(new Date(props.date)), " -", " ", utils.today(new Date(props.date))), React.createElement(Typography, { variant: "body2" }, utils.get_time(new Date(props.date))))))); }; export default TableDateComponent; //# sourceMappingURL=table_date_component.js.map