diff --git a/app/sites/[id]/settings/page.tsx b/app/sites/[id]/settings/page.tsx index f3d5f85..4672977 100644 --- a/app/sites/[id]/settings/page.tsx +++ b/app/sites/[id]/settings/page.tsx @@ -32,6 +32,25 @@ import { ZapIcon, } from '@ciphera-net/ui' import { PaperPlaneTilt, Envelope, WebhooksLogo, SpinnerGap, Trash, PencilSimple, Play, Plugs, ShieldCheck } from '@phosphor-icons/react' +import { SiDiscord } from '@icons-pack/react-simple-icons' + +function SlackIcon({ size = 16, color = '#4A154B' }: { size?: number; color?: string }) { + return +} + +const CHANNEL_ICONS: Record = { + email: , + slack: , + discord: , + webhook: , +} + +const CHANNEL_ICONS_LG: Record = { + email: , + slack: , + discord: , + webhook: , +} const TIMEZONES = [ 'UTC', @@ -1320,12 +1339,8 @@ export default function SiteSettingsPage() { >
-
- {schedule.channel === 'email' ? ( - - ) : ( - - )} +
+ {CHANNEL_ICONS_LG[schedule.channel] || }
@@ -1883,7 +1898,7 @@ export default function SiteSettingsPage() { : 'border-neutral-200 dark:border-neutral-700 text-neutral-600 dark:text-neutral-400 hover:bg-neutral-50 dark:hover:bg-neutral-800' }`} > - {ch === 'email' ? : } + {CHANNEL_ICONS[ch]} {getChannelLabel(ch)} ))}