init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// Canonical region labels (spaces normalized), matching the Figma trend legend.
|
||||
export const REGIONS = ["AMEA IT", "EMEA IT", "NABU IT", "PH IT", "JP IT"] as const;
|
||||
export type Region = (typeof REGIONS)[number];
|
||||
|
||||
export const ALL_REGION = "All";
|
||||
|
||||
// Region filter options: "All" plus the five regions.
|
||||
export const REGION_OPTIONS = [ALL_REGION, ...REGIONS];
|
||||
|
||||
// Cost Item filter options for the Dashboard.
|
||||
export const COST_ITEM_OPTIONS = ["All", "Top 5", "Top 10"] as const;
|
||||
export type CostItemFilter = (typeof COST_ITEM_OPTIONS)[number];
|
||||
|
||||
export function isRegion(value: string): value is Region {
|
||||
return (REGIONS as readonly string[]).includes(value);
|
||||
}
|
||||
Reference in New Issue
Block a user