chore: move dynamic header component to header file

This commit is contained in:
Sean Norwood 2022-04-03 20:03:47 +00:00
parent 62c219c2de
commit 3c4c15a8e3

View File

@ -1,3 +1,5 @@
import dynamic from "next/dynamic";
const Header = ({ authData }) => {
const { session, status } = authData;
@ -11,4 +13,8 @@ const Header = ({ authData }) => {
);
};
export const DynamicHeader = dynamic(() => import("../components/Header"), {
suspense: true,
});
export default Header;