import React from 'react' ; import * as stores from './stores/types' ; export default function usePageTitle ( doc ) { const title = doc && doc . title ? `${ doc . clusterId } • ${ doc . title }` : 'Console' ; React . useEffect ( ( ) => { document . title = title ; } , [ title ] ) ; }