Move frontend runtime constants out of types/ban.ts
This commit is contained in:
@@ -20,21 +20,6 @@ export type TimeRange = "24h" | "7d" | "30d" | "365d";
|
||||
*/
|
||||
export type BanOriginFilter = "all" | "blocklist" | "selfblock";
|
||||
|
||||
/** Human-readable labels for each origin filter option. */
|
||||
export const BAN_ORIGIN_FILTER_LABELS: Record<BanOriginFilter, string> = {
|
||||
all: "All",
|
||||
blocklist: "Blocklist",
|
||||
selfblock: "Selfblock",
|
||||
} as const;
|
||||
|
||||
/** Human-readable labels for each time-range preset. */
|
||||
export const TIME_RANGE_LABELS: Record<TimeRange, string> = {
|
||||
"24h": "Last 24 h",
|
||||
"7d": "Last 7 days",
|
||||
"30d": "Last 30 days",
|
||||
"365d": "Last 365 days",
|
||||
} as const;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Ban-list table item
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user