import { useEffect } from 'react' ; import { useRouteHeaderState } from '@app/store/ui/ui.hooks' ; export const useRouteHeader = ( header ) => { const [ _ , setRouteHeader ] = useRouteHeaderState ( ) ; useEffect ( ( ) => { setRouteHeader ( header ) ; } , [ ] ) ; } ;