mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-03-11 12:59:48 +01:00
14 lines
287 B
TypeScript
14 lines
287 B
TypeScript
import { notFound } from 'next/navigation';
|
|
import { ReactNode } from "react";
|
|
|
|
export default function Debug({children}: {children: ReactNode}) {
|
|
if (process.env.NODE_ENV !== 'development') {
|
|
notFound()
|
|
}
|
|
|
|
return (
|
|
<div className="debug">
|
|
{children}
|
|
</div>
|
|
)
|
|
} |