import { pb } from "$lib";
import { redirect } from "@sveltejs/kit";
import type { LayoutLoad } from "../$types";

export const load: LayoutLoad = () => {
	if (pb.authStore.isValid) return redirect(303, "/");
};
