Files

19 lines
619 B
TypeScript

import { siteMetadata } from '@/lib/metadata';
import { notFound } from 'next/navigation';
import type { ReactNode } from 'react';
export function generateMetadata() {
return siteMetadata({
title: 'Testnet Leaderboard',
description:
'Track the top-performing wallets in the Session Testnet Incentive Program. Rankings are based on total points earned through running and staking to nodes.',
});
}
export default function RootLayout({ children }: { children: ReactNode }) {
if (process.env.NEXT_PUBLIC_ENABLE_LEADERBOARD?.toLowerCase() !== 'true') {
return notFound();
}
return children;
}