UNPKG

payload-plugin-scheduler

Version:
21 lines (20 loc) 625 B
'use client'; import React from 'react'; import { formatDateTime } from '../util.js'; import Icon from './Icon.js'; const Cell = ({ cellData })=>{ if (!cellData) { return null; } const pubDate = new Date(cellData); const scheduled = pubDate > new Date(); return /*#__PURE__*/ React.createElement("div", { style: { ...scheduled ? { color: 'var(--color-warning-650' } : {} } }, scheduled && /*#__PURE__*/ React.createElement(Icon, null), formatDateTime(new Date(cellData), false)); }; export default Cell; //# sourceMappingURL=Cell.js.map