chore(LOY-64): better organisation of reward types and data

This commit is contained in:
Chuma McPhoy
2024-12-11 11:17:55 +01:00
parent 87ff783c87
commit c33f125332
4 changed files with 46 additions and 37 deletions

View File

@@ -1,6 +1,12 @@
import { RESTAURANT_REWARD_IDS, REWARD_IDS } from "@/constants/rewards"
import type { IconProps } from "@/types/components/icon"
export interface RewardIconProps extends IconProps {
rewardId: string
size?: "small" | "medium" | "large"
}
export type RewardId = (typeof REWARD_IDS)[keyof typeof REWARD_IDS]
export type RestaurantRewardId = (typeof RESTAURANT_REWARD_IDS)[number]