aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/index.tsx
blob: b185e270a556d04beafaa627a82cc8a89b56ef77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import * as React from 'react';
import { render } from 'react-dom';
import { Router, Link } from '@reach/router';

import Trace from 'ts/pages/Trace';
import Compiler from 'ts/pages/Compiler';
import Cov from 'ts/pages/Cov';
import Profiler from 'ts/pages/Profiler';

const Index = (props: any) => (
    <ul>
        <li>
            <Link to="/trace">sol-trace</Link>
        </li>
        <li>
            <Link to="/compiler">sol-compiler</Link>
        </li>
        <li>
            <Link to="/cov">sol-cov</Link>
        </li>
        <li>
            <Link to="/profiler">sol-profiler</Link>
        </li>
    </ul>
);

const App = () => (
    <Router>
        <Trace path="/trace" />
        <Compiler path="/compiler" />
        <Cov path="/cov" />
        <Profiler path="/profiler" />
        <Index default />
    </Router>
);

render(<App />, document.getElementById('app'));