This commit is contained in:
2023-10-02 23:10:49 +03:00
commit c6cb488379
255 changed files with 18731 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
export function getStatus(status) {
const statusList = getStatusList();
return statusList[status];
}
export function getStatusList(){
return {
published: {
value: "published",
text: "Published",
bg: "success",
color: "white",
},
trashed: {
value: "trashed",
text: "Trashed",
bg: "danger",
color: "white",
},
draft: {
value: "draft",
text: "Draft",
bg: "warning",
color: "dark",
},
};
}