import { PathStatus , State } from '../types' ; interface SetPathStatusArgs { path : string ; status : PathStatus ; } /**
 * Set path status for a page
 */ const SetPathStatus = ( state , { path , status } ) : State => ( { ... state , paths : { ... state . paths , [ path ] : status } } ) ; export default SetPathStatus ;