zen: add usage graph

This commit is contained in:
Frank
2025-11-18 00:45:14 -05:00
parent a5564f730e
commit 16cb77c094
8 changed files with 598 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ import { createAsync, query, useParams } from "@solidjs/router"
import { createMemo, For, Show, createEffect } from "solid-js"
import { formatDateUTC, formatDateForTable } from "../common"
import { withActor } from "~/context/auth.withActor"
import { IconChevronLeft, IconChevronRight } from "~/component/icon"
import "./usage-section.module.css"
import { createStore } from "solid-js/store"
@@ -92,10 +93,10 @@ export function UsageSection() {
<Show when={canGoPrev() || canGoNext()}>
<div data-slot="pagination">
<button disabled={!canGoPrev()} onClick={goPrev}>
<IconChevronLeft />
</button>
<button disabled={!canGoNext()} onClick={goNext}>
<IconChevronRight />
</button>
</div>
</Show>