import React from 'react';
import DataRecord from '../../dataRecord/index'
import Prompt from 'umi/prompt';

const header = props =>{
    const id = props.location.query.id
    // type:'live',
    return <><DataRecord id ={id} activeType="live"/>
    <Prompt message={location =>
        location.pathname.startsWith("/activity/liveActivity")
          ? true
          : localStorage.removeItem("liveActivePageParams")} />
          </>
}

export default header