plane/web/lib/wrappers/authentication-wrapper.tsx

15 lines
346 B
TypeScript
Raw Normal View History

2024-04-30 11:34:49 +00:00
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>;
};