Files
sorvor-back/app/grouping/page.tsx
Thanu Poptiphueng 05f3e019a8
All checks were successful
backend-action / build-image (push) Successful in 1m50s
added location element
2024-05-16 12:50:14 +07:00

15 lines
433 B
TypeScript

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>
);
}