gcg-website/static/admin/previews/field-previews/draft-preview.js

22 lines
495 B
JavaScript
Raw Normal View History

const DraftPreview = ({ value }) =>
2023-05-29 16:22:34 +02:00
h(
"div",
{
style: {
backgroundColor: value === true ? "rgb(37 99 235)" : "rgb(22 163 74)",
color: "white",
border: "none",
2023-10-01 15:24:00 +02:00
padding: "0 5px",
2023-05-29 16:22:34 +02:00
textAlign: "center",
textDecoration: "none",
display: "inline-block",
cursor: "pointer",
borderRadius: "4px",
fontSize: "14px",
},
},
value ? "Entwurf" : "Veröffentlicht"
);
export default DraftPreview;