mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-27 15:24:56 +00:00
16 lines
438 B
Lua
16 lines
438 B
Lua
-- Dashboard stats module
|
|
|
|
---@class StatsModule
|
|
---@field card fun(title: string, value: string|number, icon: string?, trend: table?): StatCardConfig
|
|
---@field row fun(stats: table): StatRowConfig
|
|
---@field trend fun(direction: string, value: string): TrendIndicatorConfig
|
|
|
|
---@type StatsModule
|
|
local stats = {
|
|
card = require("stats.card"),
|
|
row = require("stats.row"),
|
|
trend = require("stats.trend")
|
|
}
|
|
|
|
return stats
|