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

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

export default header