23 | {detailInfo && (
24 |
25 |
26 |
27 | )}
28 |
29 | );
30 | };
31 |
32 | export default PostDetail;
33 |
--------------------------------------------------------------------------------
/src/app/components/templates/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/khaaleoo/notion-nextjs-mini-kit/973b5132a7d976471f5d749bf23a3915fe2490ae/src/app/components/templates/.gitkeep
--------------------------------------------------------------------------------
/src/app/components/templates/Layouts/LayoutWrapper.tsx:
--------------------------------------------------------------------------------
1 | "use client";
2 |
3 | import { usePathname } from "next/navigation";
4 | import { FC, useEffect, useState } from "react";
5 | import PublicLayout from "@components/templates/Layouts/PublicLayout";
6 | import PrivateLayout from "@components/templates/Layouts/PrivateLayout";
7 |
8 | type TProps = {
9 | children: React.ReactNode;
10 | };
11 |
12 | // Define your layout map
13 | const layouts: Record