28 lines
576 B
TypeScript
28 lines
576 B
TypeScript
import { ReactNode } from 'react';
|
|
import { StudioHeader } from '@edx/frontend-component-header';
|
|
import AuthZTitle, { AuthZTitleProps } from './AuthZTitle';
|
|
|
|
interface AuthZLayoutProps extends AuthZTitleProps {
|
|
children: ReactNode;
|
|
context: {
|
|
id: string;
|
|
org: string;
|
|
title: string;
|
|
}
|
|
}
|
|
|
|
const AuthZLayout = ({ children, context, ...props }: AuthZLayoutProps) => (
|
|
<>
|
|
<StudioHeader
|
|
number={context.id}
|
|
org={context.org}
|
|
title={context.title}
|
|
/>
|
|
<AuthZTitle {...props} />
|
|
{children}
|
|
</>
|
|
|
|
);
|
|
|
|
export default AuthZLayout;
|