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