import type { LayoutLoad } from './$types';

export const load: LayoutLoad = async ({ data }) => {
	// Pasar los datos del servidor al cliente
	return {
		user: data.user,
		companies: data.companies,
		authenticated: data.authenticated,
		userTenants: data.userTenants ?? [],
		activeCompanyId: data.activeCompanyId
	};
};
