feat: add more moderator actions

This commit is contained in:
Xyphyn committed 2023-08-23 17:53:33 -07:00
1 parent 5507cf8254
commit 22ce7bf39e
6 files changed
+96 -6

No files matched your search

+31
View File
@@ -2,6 +2,9 @@
import type { IconSource } from 'svelte-hero-icons'
import {
Icon,
InformationCircle,
LockClosed,
LockOpen,
QuestionMarkCircle,
Trash,
UserMinus,
@@ -53,6 +56,34 @@
text: 'Removed Mod',
}
}
case 'postFeature': {
return {
icon: InformationCircle,
class: 'text-green-600 dark:text-green-400',
text: 'Featured Post',
}
}
case 'postUnfeature': {
return {
icon: InformationCircle,
class: 'text-red-600 dark:text-red-400',
text: 'Unfeatured Post',
}
}
case 'postLock': {
return {
icon: LockClosed,
class: 'text-yellow-600 dark:text-yellow-400',
text: 'Locked Post',
}
}
case 'postUnlock': {
return {
icon: LockOpen,
class: 'text-yellow-600 dark:text-yellow-400',
text: 'Unlocked Post',
}
}
}
return {