tasko/app/(platform)/(dashboard)/organization/[organizationId]/layout.tsx
2024-02-14 21:30:10 -05:00

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;