diff --git a/src/components/icons/InfoThinIcon.svelte b/src/components/icons/InfoThinIcon.svelte new file mode 100644 index 0000000..05aa050 --- /dev/null +++ b/src/components/icons/InfoThinIcon.svelte @@ -0,0 +1,19 @@ + + + diff --git a/src/components/icons/WarningThinIcon.svelte b/src/components/icons/WarningThinIcon.svelte new file mode 100644 index 0000000..ce322ca --- /dev/null +++ b/src/components/icons/WarningThinIcon.svelte @@ -0,0 +1,19 @@ + + + diff --git a/src/components/notifications/Notification.svelte b/src/components/notifications/Notification.svelte index 0e6c363..92a8d6f 100644 --- a/src/components/notifications/Notification.svelte +++ b/src/components/notifications/Notification.svelte @@ -4,9 +4,38 @@ import { themeStore } from '../../stores' import type { Notification } from '$lib/notifications' import CheckThinIcon from '$components/icons/CheckThinIcon.svelte' + import InfoThinIcon from '$components/icons/InfoThinIcon.svelte' + import WarningThinIcon from '$components/icons/WarningThinIcon.svelte' import XThinIcon from '$components/icons/XThinIcon.svelte' export let notification: Notification + + const iconMap = { + info: { + component: InfoThinIcon, + props: { + color: '#1e3a8a' + } + }, + error: { + component: XThinIcon, + props: { + color: $themeStore === 'light' ? '#ffd6d7' : '#fec3c3' + } + }, + success: { + component: CheckThinIcon, + props: { + color: $themeStore === 'light' ? '#b8ffd3' : '#002e12' + } + }, + warning: { + component: WarningThinIcon, + props: { + color: '#7c2d12' + } + } + }