Untitled
const recipeCheck = (recipe: MealsCardType | DrinksCardType) => { if (recipeType === 'Meal') { return `/meals/${recipe[`id${recipeType}`]}`; } return `/drinks/${recipe[`id${recipeType}`]}`; };
const recipeCheck = (recipe: MealsCardType | DrinksCardType) => { if (recipeType === 'Meal') { return `/meals/${recipe[`id${recipeType}`]}`; } return `/drinks/${recipe[`id${recipeType}`]}`; };