The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import { requireOptionalNativeModule } from "expo"; |
| 2 | import { |
| 3 | subscriptionUsageTimeline, |
| 4 | type SubscriptionUsageSnapshot, |
| 5 | } from "./subscriptionUsageSnapshot"; |
| 6 | |
| 7 | export async function publishSubscriptionUsage(snapshot: SubscriptionUsageSnapshot) { |
| 8 | if (!requireOptionalNativeModule("ExpoWidgets")) return; |
| 9 | const { default: widget } = await import("./SubscriptionUsage"); |
| 10 | widget.updateTimeline(subscriptionUsageTimeline(snapshot, Date.now())); |
| 11 | } |