Add license information.
[ustaxviewer.git] / src / index.tsx
1 // Copyright 2020 Blue Static <https://www.bluestatic.org>
2 // This program is free software licensed under the GNU General Public License,
3 // version 3.0. The full text of the license can be found in LICENSE.txt.
4 // SPDX-License-Identifier: GPL-3.0-only
5
6 import { render } from 'solid-js/dom';
7 import { Form1040, FilingStatus, Schedule2, TaxReturn, W2 } from 'ustaxlib/fed2019';
8
9 import { Person } from 'ustaxlib/core';
10
11 import App from './App';
12
13 const tr = new TaxReturn();
14 tr.addForm(new Form1040({ filingStatus: FilingStatus.Single }));
15 tr.addForm(new W2({
16 employer: 'Employer',
17 employee: Person.self('Robert'),
18 wages: 130000,
19 fedIncomeTax: 2500
20 }));
21 tr.addForm(new Schedule2);
22
23 render(() => <App tr={tr} />, document.getElementById('root'));