blob: 09afb5f9dc63aa2efd13c911be8052485ccb9154 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<script lang="ts">
/**
* The `account-usage` view — Claude + Codex + Hyper usage bars with
* on-track pace markers. GLOBAL (not workspace/conversation scoped), so it
* stays mounted across tab switches (no {#key}).
*/
import {
AccountUsageView,
type LoadAccountUsage,
type SaveAccountUsageSettings,
} from "../../features/account-usage";
import type { AppViewPorts } from "../view-ports";
let { ports }: { ports: AppViewPorts } = $props();
const store = $derived(ports.store);
const loadAccountUsage: LoadAccountUsage = (opts) => store.accountUsage(opts);
const saveAccountUsageSettings: SaveAccountUsageSettings = (provider, settings) =>
store.setAccountUsageSettings(provider, settings);
</script>
<AccountUsageView load={loadAccountUsage} saveSettings={saveAccountUsageSettings} />
|