/* eslint-disable i18next/no-literal-string */ import React from 'react'; import { Input, Icon } from 'UI'; import { Button } from 'antd'; import { observer } from 'mobx-react-lite'; import { useStore } from 'App/mstore'; import cn from 'classnames'; import { Rollout, Payload } from './Helpers'; import { useTranslation } from 'react-i18next'; 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 { t } = useTranslation(); const { featureFlagsStore } = useStore(); const avg = React.useMemo( () => Math.floor(100 / featureFlagsStore.currentFflag!.variants.length), [featureFlagsStore.currentFflag!.variants.length], ); return (
key
{t('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)
}
/>
)}