feat: export complete Discourse themes ecosystem (16 themes, SCSS, JS components and color schemes)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export function getTopicStatusBadge(topic) {
|
||||
if (topic.is_hot) {
|
||||
return {
|
||||
icon: "fire",
|
||||
text: "topic_statuses.hot.title",
|
||||
className: "--hot",
|
||||
};
|
||||
}
|
||||
|
||||
if (topic.pinned || topic.pinned_globally) {
|
||||
return {
|
||||
icon: "thumbtack",
|
||||
text: "topic_statuses.pinned.title",
|
||||
className: "--pinned",
|
||||
};
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user