mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 17:03:38 +00:00
23 lines
477 B
TypeScript
23 lines
477 B
TypeScript
import { startCase } from 'lodash';
|
|
import { auth } from '@clerk/nextjs/server';
|
|
|
|
import { OrgControl } from './_components/org-control';
|
|
|
|
export async function generateMetadata() {
|
|
const { orgSlug } = await auth();
|
|
|
|
return {
|
|
title: startCase(orgSlug ?? 'organization'),
|
|
};
|
|
}
|
|
|
|
const OrganizationIdLayout = ({ children }: { children: React.ReactNode }) => {
|
|
return (
|
|
<>
|
|
<OrgControl />
|
|
{children}
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default OrganizationIdLayout;
|