diff --git a/src/lib/components/NotificationList.svelte b/src/lib/components/NotificationList.svelte index a48c04b..de20b49 100644 --- a/src/lib/components/NotificationList.svelte +++ b/src/lib/components/NotificationList.svelte @@ -5,6 +5,21 @@ BottomRight = 'bottom_right', BottomLeft = 'bottom_left', } + + export function getPositionClasses(position: Position = Position.TopRight) { + switch (position) { + case Position.TopRight: + return 'top-6 right-6'; + case Position.TopLeft: + return 'top-6 left-6'; + case Position.BottomRight: + return 'bottom-6 right-6'; + case Position.BottomLeft: + return 'bottom-6 left-6'; + default: + return 'top-6 right-6'; + } + }