import React from 'react';
import { convertRuleToBuilderState, readableQueryToString } from '@reltio/mdm-sdk';
import { useMdmMetadata } from '../../../../../contexts/MdmModuleContext';
import { useSegmentReadableQuery } from '../../../hooks/useSegmentReadableQuery';
export var SegmentQueryDeltaValue = function (_a) {
    var value = _a.value;
    var metadata = useMdmMetadata();
    var builderState = convertRuleToBuilderState(value, metadata);
    var readableQuery = useSegmentReadableQuery(builderState);
    var readableQueryString = readableQueryToString(readableQuery);
    return React.createElement(React.Fragment, null, readableQueryString);
};
