import { loadFlash } from 'sveltekit-flash-message/server';
import type { LayoutServerLoad } from './$types';

export const load: LayoutServerLoad = loadFlash(async ({ url, locals }) => {
	return {
		url: url.pathname,
		user: locals.user
	};
});
