const calcTip = (bill) => {
return bill >= 50 && bill <= 300 ? bill * 0.15 : bill * 0.20;
}
const demandIcon = demand === "low" ? iconArrowDown
: demand === "stable" ? iconArrowRight
: demand === "high" ? iconArrowUp : "";
const calcTip = (bill) => {
return bill >= 50 && bill <= 300 ? bill * 0.15 : bill * 0.20;
}
const demandIcon = demand === "low" ? iconArrowDown
: demand === "stable" ? iconArrowRight
: demand === "high" ? iconArrowUp : "";