Files
MoonTVPlus/src/app/tv/layout.tsx
T
2026-06-01 02:05:05 +08:00

23 lines
452 B
TypeScript

import { ReactNode } from 'react';
import { notFound } from 'next/navigation';
import TVRemoteReceiver from '@/components/tv/TVRemoteReceiver';
import { isTVModeEnabled } from '@/lib/tv-mode';
export const metadata = {
title: 'TV - MoonTV Plus',
};
export default function Layout({ children }: { children: ReactNode }) {
if (!isTVModeEnabled()) {
notFound();
}
return (
<>
{children}
<TVRemoteReceiver />
</>
);
}