mirror of
https://github.com/soconnor0919/beenvoice.git
synced 2025-12-13 01:24:44 -05:00
- 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
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import Link from "next/link";
|
|
|
|
import { api, HydrateClient } from "~/trpc/server";
|
|
import { Button } from "~/components/ui/button";
|
|
import { Plus } from "lucide-react";
|
|
import { BusinessesTable } from "./_components/businesses-table";
|
|
|
|
export default async function BusinessesPage() {
|
|
return (
|
|
<div>
|
|
<div className="mb-8 flex flex-col gap-4 md:flex-row md:items-center md:justify-between">
|
|
<div>
|
|
<h1 className="bg-gradient-to-r from-emerald-600 to-teal-600 bg-clip-text text-3xl font-bold text-transparent">
|
|
Businesses
|
|
</h1>
|
|
<p className="mt-1 text-lg text-gray-600">
|
|
Manage your businesses and their information.
|
|
</p>
|
|
</div>
|
|
<Button
|
|
asChild
|
|
size="lg"
|
|
className="bg-gradient-to-r from-emerald-600 to-teal-600 font-medium text-white shadow-lg hover:from-emerald-700 hover:to-teal-700 hover:shadow-xl"
|
|
>
|
|
<Link href="/dashboard/businesses/new">
|
|
<Plus className="mr-2 h-5 w-5" /> Add Business
|
|
</Link>
|
|
</Button>
|
|
</div>
|
|
<HydrateClient>
|
|
<BusinessesTable />
|
|
</HydrateClient>
|
|
</div>
|
|
);
|
|
}
|