dashpresshq/dashpress

View on GitHub
src/frontend/_layouts/app/getLayout.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import type { ReactElement } from "react";

import { IsSignedIn } from "./IsSignedIn";
import { NavigationSideBar } from "./NavigationSideBar";

export const getAppLayout = (page: ReactElement) => {
  return (
    <IsSignedIn>
      <NavigationSideBar>{page}</NavigationSideBar>
    </IsSignedIn>
  );
};