Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import {IRouteService, MemoryHistory, RouteMatch, Router} from 'boring-router';
import {observable} from 'mobx';
import {observer} from 'mobx-react';
import React, {Component, ReactNode} from 'react';
import ReactDOM from 'react-dom';
import {Link, Route} from '../../bld/library';
const history = new MemoryHistory();
class Account {
constructor(readonly id: string) {}
get avatarURL(): string {
return `https://gravatar.com/avatar/${this.id}`;
}
}
const router = new Router(history);
const route = router.$route({
default: {
$match: '',
},
account: {