export default function getMainRoute(routes) { for (let route of routes) { if (!route.abstract) return route; } return null; }