layout.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import type { Metadata } from 'next'
  2. import './globals.css'
  3. import { AppProviders } from '@/components/app-providers'
  4. import { AppLayout } from '@/components/app-layout'
  5. import React from 'react'
  6. export const metadata: Metadata = {
  7. title: 'ABL Token',
  8. description: 'ABL Token',
  9. }
  10. const links: { label: string; path: string }[] = [
  11. // More links...
  12. { label: 'Home', path: '/' },
  13. { label: 'Account', path: '/account' },
  14. { label: 'Config', path: '/config' },
  15. { label: 'Create New Token', path: '/create-token' },
  16. { label: 'Manage Token', path: '/manage-token' },
  17. ]
  18. export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
  19. return (
  20. <html lang="en" suppressHydrationWarning>
  21. <body className={`antialiased`}>
  22. <AppProviders>
  23. <AppLayout links={links}>{children}</AppLayout>
  24. </AppProviders>
  25. </body>
  26. </html>
  27. )
  28. }
  29. // Patch BigInt so we can log it using JSON.stringify without any errors
  30. declare global {
  31. interface BigInt {
  32. toJSON(): string
  33. }
  34. }
  35. BigInt.prototype.toJSON = function () {
  36. return this.toString()
  37. }