9s-fe-core
Version:
Core functionalities for authentication, configuration, and repository management.
16 lines (15 loc) • 628 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const dayjs_1 = __importDefault(require("dayjs"));
const DateDisplay = ({ fieldItem }) => {
let valueDisplay = '';
if (fieldItem.value != null) {
valueDisplay = (0, dayjs_1.default)(fieldItem.value).format('DD/MM/YYYY');
}
return (0, jsx_runtime_1.jsx)("p", { children: valueDisplay }, fieldItem.key);
};
exports.default = DateDisplay;