2024-02-16 01:49:19 +00:00
|
|
|
import { startCase } from 'lodash';
|
2024-03-21 21:15:27 +00:00
|
|
|
import { auth } from '@clerk/nextjs/server';
|
2024-02-15 02:30:10 +00:00
|
|
|
|
2024-02-16 01:49:19 +00:00
|
|
|
import { OrgControl } from './_components/org-control';
|
2024-02-15 02:30:10 +00:00
|
|
|
|
|
|
|
export async function generateMetadata() {
|
|
|
|
const { orgSlug } = auth();
|
|
|
|
|
|
|
|
return {
|
2024-02-16 01:49:19 +00:00
|
|
|
title: startCase(orgSlug ?? 'organization'),
|
2024-02-15 02:30:10 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
const OrganizationIdLayout = ({ children }: { children: React.ReactNode }) => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<OrgControl />
|
|
|
|
{children}
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default OrganizationIdLayout;
|