import * as React from 'react'; import { defaultPerformanceFlags, StylesContextPerformance } from '@fluentui/react-bindings'; import * as styles from './styles'; type TelemetryPerfFlagsProps = { flags: StylesContextPerformance; onChange: (name: keyof StylesContextPerformance, value: boolean) => void; }; export const TelemetryPerfFlags: React.FC = props => (
{Object.keys(defaultPerformanceFlags).map(flag => (
props.onChange(e.target.name as keyof StylesContextPerformance, e.target.checked)} />
))}
);