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

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

export default header