Untitled

 avatar
unknown
plain_text
2 years ago
213 B
6
Indexable
 const recipeCheck = (recipe: MealsCardType | DrinksCardType) => {
    if (recipeType === 'Meal') {
      return `/meals/${recipe[`id${recipeType}`]}`;
    }
    return `/drinks/${recipe[`id${recipeType}`]}`;
  };
Editor is loading...