import {createClient} from "@/lib/supabase/server";
import AccountBillingStatus from "@/components/basejump/account-billing-status";
import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert";
const returnUrl = process.env.NEXT_PUBLIC_URL as string;
export default async function TeamBillingPage({params: {accountSlug}}: {params: {accountSlug: string}}) {
const supabaseClient = await createClient();
const {data: teamAccount} = await supabaseClient.rpc('get_account_by_slug', {
slug: accountSlug
});
if (teamAccount.account_role !== 'owner') {
return (
Manage your team's subscription and billing details.