import { Command } from '../types' export default (): Command => ({ tr, dispatch }) => { if (dispatch) { tr.scrollIntoView() } return true }