Untitled

Anonymous
plain_text
11/01/2023 5:29 PM
284 B
37
Indexable
 const recipeCheck = (recipe: MealsCardType | DrinksCardType) => {
    if (recipeType === 'Meal') {
      return `/meals/${recipe[`id${recipeType}`]}`;
    }
    return `/drinks/${recipe[`id${recipeType}`]}`;
  };
Editor is loading...