diff --git a/src/app/account/[id]/layout.tsx b/src/app/account/[id]/layout.tsx new file mode 100644 index 00000000..6ee65121 --- /dev/null +++ b/src/app/account/[id]/layout.tsx @@ -0,0 +1,17 @@ +import { Metadata } from 'next'; +import * as React from 'react'; + +import '@/styles/colors.css'; + +export const metadata: Metadata = { + title: 'Account', + description: 'Account details', +}; + +export default function AccountLayout({ + children, +}: { + children: React.ReactNode; +}) { + return <>{children}; +} diff --git a/src/app/account/[id]/page.tsx b/src/app/account/[id]/page.tsx new file mode 100644 index 00000000..0e86b9ec --- /dev/null +++ b/src/app/account/[id]/page.tsx @@ -0,0 +1,37 @@ +'use client' + +import dynamic from 'next/dynamic'; +import * as React from 'react'; + +import Header from '@/components/layout/Header'; + +import ContextProvider from '@/app/context/ContextProvider'; +const AccountInfo = dynamic(() => import('@/components/account/AccountInfo'), { ssr: false }); +import Footer from '@/components/layout/Footer'; + +import WalletProvider from '@/app/context/WalletProvider'; +import { usePathname } from 'next/navigation'; + + + +const Account = () => { + + const pathname = usePathname(); + const accountLink = pathname.split('/').pop() || ''; + + console.log(accountLink) + + return ( + + +
+
+ +
+