1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import type { Metadata } from 'next'
- import './globals.css'
- import { AppProviders } from '@/components/app-providers'
- import { AppLayout } from '@/components/app-layout'
- import React from 'react'
- export const metadata: Metadata = {
- title: 'ABL Token',
- description: 'ABL Token',
- }
- const links: { label: string; path: string }[] = [
- // More links...
- { label: 'Home', path: '/' },
- { label: 'Account', path: '/account' },
- { label: 'Config', path: '/config' },
- { label: 'Create New Token', path: '/create-token' },
- { label: 'Manage Token', path: '/manage-token' },
- ]
- export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
- return (
- <html lang="en" suppressHydrationWarning>
- <body className={`antialiased`}>
- <AppProviders>
- <AppLayout links={links}>{children}</AppLayout>
- </AppProviders>
- </body>
- </html>
- )
- }
- // Patch BigInt so we can log it using JSON.stringify without any errors
- declare global {
- interface BigInt {
- toJSON(): string
- }
- }
- BigInt.prototype.toJSON = function () {
- return this.toString()
- }
|