mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
29 lines
852 B
TypeScript
29 lines
852 B
TypeScript
import {PageParams} from "@/types/next";
|
|
import {Page, PageContent, PageHeader, PageTitle} from "@/features/layout/page";
|
|
import {notFound} from "next/navigation";
|
|
import {OrganizationForm} from "@/components/wrappers/dashboard/organization/OrganizationForm/OrganizationForm";
|
|
import {getOrganization} from "@/lib/auth/auth";
|
|
|
|
|
|
export default async function RoutePage(props: PageParams<{
|
|
|
|
}>) {
|
|
const organization = await getOrganization({});
|
|
|
|
if (!organization) {
|
|
notFound();
|
|
}
|
|
|
|
return(
|
|
<Page>
|
|
<PageHeader>
|
|
<PageTitle>
|
|
Edit {organization.name}
|
|
</PageTitle>
|
|
</PageHeader>
|
|
<PageContent>
|
|
<OrganizationForm members={organization.members} defaultValues={organization}/>
|
|
</PageContent>
|
|
</Page>
|
|
)
|
|
} |