24 lines
691 B
TypeScript
24 lines
691 B
TypeScript
|
|
import electricity from "../assets/needs/electricity.png";
|
||
|
|
import water from "../assets/needs/water.png";
|
||
|
|
import food from "../assets/needs/food.png";
|
||
|
|
import health from "../assets/needs/health.png";
|
||
|
|
import housing from "../assets/needs/housing.png";
|
||
|
|
import refrigerator from "../assets/needs/refrigerator.png";
|
||
|
|
import air_conditioner from "../assets/needs/air_conditioner.png";
|
||
|
|
import court_order from "../assets/needs/court_order.png";
|
||
|
|
|
||
|
|
const NEED_IMAGES: Record<string, string> = {
|
||
|
|
electricity,
|
||
|
|
water,
|
||
|
|
food,
|
||
|
|
health,
|
||
|
|
housing,
|
||
|
|
refrigerator,
|
||
|
|
air_conditioner,
|
||
|
|
court_order,
|
||
|
|
};
|
||
|
|
|
||
|
|
export function getNeedImage(needType: string): string {
|
||
|
|
return NEED_IMAGES[needType] || food;
|
||
|
|
}
|