Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
213 B
2
Indexable
Never
 const recipeCheck = (recipe: MealsCardType | DrinksCardType) => {
    if (recipeType === 'Meal') {
      return `/meals/${recipe[`id${recipeType}`]}`;
    }
    return `/drinks/${recipe[`id${recipeType}`]}`;
  };