Files
yaak/src-web/components/IsDev.tsx
2025-05-16 07:53:22 -07:00

15 lines
246 B
TypeScript

import type { ReactNode } from 'react';
import { appInfo } from '../lib/appInfo';
interface Props {
children: ReactNode;
}
export function IsDev({ children }: Props) {
if (!appInfo.isDev) {
return null;
}
return <>{children}</>;
}