frontend/src/reports/options/index.ts
raw| 1 | import { get } from "../../api"; |
| 2 | import { _ } from "../../i18n"; |
| 3 | import { Route } from "../route"; |
| 4 | import OptionsSvelte from "./Options.svelte"; |
| 5 | |
| 6 | export interface OptionsReportProps { |
| 7 | fava_options: Record<string, string>; |
| 8 | beancount_options: Record<string, string>; |
| 9 | } |
| 10 | |
| 11 | export const options = new Route<OptionsReportProps>( |
| 12 | "options", |
| 13 | OptionsSvelte, |
| 14 | async () => get("options"), |
| 15 | () => _("Options"), |
| 16 | ); |