D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
share
/
grafana
/
public
/
app
/
core
/
components
/
Filename :
WithFeatureToggle.tsx
back
Copy
import React from 'react'; export interface Props { featureToggle: boolean; } export const WithFeatureToggle = ({ featureToggle, children }: React.PropsWithChildren<Props>) => { if (featureToggle === true) { return <>{children}</>; } return null; };