terriajs
Version:
Geospatial data visualization platform.
16 lines • 719 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import * as DTP from "./DateTimePickerStyles";
export const CenturyView = ({ datesObject, onSelectCentury }) => {
const centuries = datesObject.index;
if (datesObject.dates && datesObject.dates.length >= 12) {
return (_jsxs(DTP.Grid, { children: [_jsx(DTP.GridHeading, { children: "Select a century" }), centuries.map((c) => (_jsxs(DTP.DateButton, { css: `
display: inline-block;
width: 40%;
`, onClick: () => onSelectCentury(c), children: [c, "00"] }, c)))] }));
}
else {
// Note: This will be handled separately
return null;
}
};
//# sourceMappingURL=CenturyView.js.map