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

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

export default header