plane/web/lib/wrappers/authentication-wrapper.tsx
2024-04-30 17:04:49 +05:30

15 lines
346 B
TypeScript

import { FC, ReactNode } from "react";
type TPageType = "public" | "onboarding" | "private";
type TAuthenticationWrapper = {
children: ReactNode;
pageType: TPageType;
};
export const AuthenticationWrapper: FC<TAuthenticationWrapper> = (props) => {
const { children, pageType } = props;
return <div key={pageType}>{children}</div>;
};