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

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

export default header