There is no reason for having the logic duplicated across a hook and a component, the component should just use the hook.