import React from 'react';
import block from 'bem-cn';

const b = block('request-metadata');
const { requestId } = window.ya.connect.initial;

const RequestMetadata = ({ cls }) => (
    <span className={b({}).mix(cls)}>
        {`${requestId} ${new Date().toISOString()}`}
    </span>
);

export default RequestMetadata;
