mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
18 lines
509 B
TypeScript
18 lines
509 B
TypeScript
import { siteMetadata } from '@/lib/metadata';
|
|
import { notFound } from 'next/navigation';
|
|
import type { ReactNode } from 'react';
|
|
|
|
export async function generateMetadata() {
|
|
return await siteMetadata({
|
|
title: 'Faucet',
|
|
description: 'Claim test SESH to participate in the Session Testnet.',
|
|
});
|
|
}
|
|
|
|
export default function FaucetLayout({ children }: { children: ReactNode }) {
|
|
if (process.env.NEXT_PUBLIC_ENABLE_FAUCET?.toLowerCase() !== 'true') {
|
|
return notFound();
|
|
}
|
|
return children;
|
|
}
|