import { Alert } from '@material-ui/lab'; import { useStyles } from 'component/segments/SegmentDocs/SegmentDocs.styles'; import { STRATEGY_SEGMENTS_LIMIT, SEGMENT_VALUES_LIMIT, } from 'utils/segmentLimits'; export const SegmentDocsWarning = () => { const styles = useStyles(); return (

Segments is an experimental feature available to select users.

This feature is currently in development. Future versions may require to update your SDKs.

); }; export const SegmentDocsValuesWarning = () => { return ( Segments is an experimental feature available to select users. Currently, segments are limited to at most {SEGMENT_VALUES_LIMIT}{' '} values. ); }; export const SegmentDocsValuesError = (props: { values: number }) => { return ( Segments are limited to at most {SEGMENT_VALUES_LIMIT} values. This segment currently has {props.values}{' '} {props.values === 1 ? 'value' : 'values'}. ); }; export const SegmentDocsStrategyWarning = () => { return ( Strategies are limited to {STRATEGY_SEGMENTS_LIMIT} segments.{' '} ); }; const SegmentDocsLink = () => { return ( <> Read more about segments in the documentation . ); }; const SegmentLimitsLink = () => { return ( <> Please{' '} get in touch {' '} if you would like this limit increased. ); }; export const segmentsDocsLink = 'https://docs.getunleash.io/reference/segments';