mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-14 21:23:40 +01:00

16 lines
286 B
TypeScript
16 lines
286 B
TypeScript
import type { ReactNode } from 'react';
|
|
import { useAppInfo } from '../hooks/useAppInfo';
|
|
|
|
interface Props {
|
|
children: ReactNode;
|
|
}
|
|
|
|
export function IsDev({ children }: Props) {
|
|
const appInfo = useAppInfo();
|
|
if (!appInfo.isDev) {
|
|
return null;
|
|
}
|
|
|
|
return <>{children}</>;
|
|
}
|