chore(LOY-64): better organisation of reward types and data
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user