import React from 'react'; import { Rollout, Payload } from './Helpers'; import { Input, Button, Icon } from 'UI'; import { observer } from 'mobx-react-lite'; import { useStore } from 'App/mstore'; import cn from 'classnames'; const alphabet = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ]; function Multivariant({ readonly }: { readonly?: boolean }) { const { featureFlagsStore } = useStore(); const avg = React.useMemo(() => { return Math.floor(100 / featureFlagsStore.currentFflag!.variants.length); }, [featureFlagsStore.currentFflag!.variants.length]); return (
key based on specific
distribution.
{variant.value}
) : (
) => {
if (e.target.value?.length > 25) return;
variant.setKey(e.target.value);
}}
/>
)}
{variant.payload}
) : (
) =>
variant.setPayload(e.target.value)
}
/>
)}