import React from 'react'; interface Props { filter: any; isHorizontal?: boolean; } function FunnelStepText(props: Props) { const { filter } = props; const total = filter.value.length; const additionalStyle = props.isHorizontal ? { whiteSpace: 'nowrap', maxWidth: 210, textOverflow: 'ellipsis', overflow: 'hidden' } : {}; return (
{filter.label} {filter.operator} {filter.value.map((value: any, index: number) => ( {value} {index < total - 1 && or} ))}
); } export default FunnelStepText;