mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-28 17:55:15 +02:00
Signed-off-by: andreas-unleash <andreas@getunleash.ai> Co-authored-by: andreas-unleash <andreas@getunleash.ai>
25 lines
681 B
TypeScript
25 lines
681 B
TypeScript
import { FormControlLabel, Switch } from '@mui/material';
|
|
import { VFC } from 'react';
|
|
|
|
interface IFeatureStrategyEnabledDisabledProps {
|
|
enabled: boolean;
|
|
onToggleEnabled: () => void;
|
|
}
|
|
|
|
export const FeatureStrategyEnabledDisabled: VFC<
|
|
IFeatureStrategyEnabledDisabledProps
|
|
> = ({ enabled, onToggleEnabled }) => {
|
|
return (
|
|
<FormControlLabel
|
|
control={
|
|
<Switch
|
|
name="enabled"
|
|
onChange={onToggleEnabled}
|
|
checked={enabled}
|
|
/>
|
|
}
|
|
label="Enabled – This strategy will be used when evaluating feature toggles."
|
|
/>
|
|
);
|
|
};
|