Untitled

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