forked from jordanlambrecht/tracker-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslots.ts
More file actions
25 lines (21 loc) · 629 Bytes
/
Copy pathslots.ts
File metadata and controls
25 lines (21 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// src/types/slots.ts
//
// Functions: (types only)
import type { TrackerRegistryEntry } from "@/data/tracker-registry"
import type { PlatformMeta } from "@/lib/adapters/types"
import type { Snapshot, TrackerSummary } from "@/types/api"
export type SlotCategory = "badge" | "stat-card" | "progress"
export interface SlotContext {
tracker: TrackerSummary
latestSnapshot: Snapshot | null
meta: PlatformMeta | null
registry: TrackerRegistryEntry | undefined
accentColor: string
}
export interface ResolvedSlot {
id: string
category: SlotCategory
props: Record<string, unknown>
priority: number
span: 1 | 2
}