import { getProductUseCases } from "$lib/domains/product/usecases";
import type { PageServerLoad } from "./$types";

export const load: PageServerLoad = async ({ params }) => {
	const pid = params.pageid;
	return await getProductUseCases().getProductByLinkId(pid);
};
