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