a1b40e7a9c
- Updated database connection to support Turso auth token - Added vercel.json with bun build configuration - Updated environment schema for production deployment - Added new features and components for production readiness
15 lines
387 B
TypeScript
15 lines
387 B
TypeScript
"use client";
|
|
|
|
import { api } from "~/trpc/react";
|
|
import { UniversalTable } from "~/components/ui/universal-table";
|
|
import { TableSkeleton } from "~/components/ui/skeleton";
|
|
|
|
export function BusinessesTable() {
|
|
const { isLoading } = api.businesses.getAll.useQuery();
|
|
|
|
if (isLoading) {
|
|
return <TableSkeleton rows={8} />;
|
|
}
|
|
|
|
return <UniversalTable resource="businesses" />;
|
|
}
|