xylabs/sdk-react

View on GitHub
packages/app-settings/src/components/Developer.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import type { ReactElement } from 'react'

import { useAppSettings } from '../contexts/index.ts'

export const Developer: React.FC<{ children: ReactElement }> = ({ children = null }) => {
  const { developerMode } = useAppSettings()

  return developerMode ? children : null
}