import { writable } from 'svelte/store';

export const notification = writable(null);

/**
 * Show a notification popup.
 * @param {string} message - The message to display
 * @param {number} [timeout=3000] - Auto-dismiss timeout in milliseconds
 */
export function notify(message, timeout = 3000) {
	notification.set({ message, timeout });
}
