import { db } from "@/src/db";
import LocationSelector from "../../components/LocationSelector";
import LocationContextProvider from "@/components/locationContenxt";

export default async function Page() {
  let provinces = await db.query.province
    .findMany({ with: { zones: true } })
    .execute();
  return (
    <LocationContextProvider>
      <LocationSelector provinces={provinces} />
    </LocationContextProvider>
  );
}
