// Generated with util/create-component.js import React from "react"; import Label from "../Label"; import { PickLabelProps } from "./PickLabel.types"; const PickLabel: React.FC = ({ type, pickType, categoryKr, labelStyle, }) => { const { color, kr, imgName } = pickTypeKoreanColorMap[pickType]; if (!color || !kr || !imgName) { return null; } if (type === "label") { return ( ); } else { return (
); } }; export default PickLabel; const pickTypeKoreanColorMap = { best: { kr: "베스트", color: "bg-blue-7", imgName: "pick_best", }, plus: { kr: "플러스", color: "bg-blue-6", imgName: "pick_plus", }, premium: { kr: "프리미엄", color: "bg-violet", imgName: "pick_premium", }, cost_effective: { kr: "가성비", color: "bg-green", imgName: "pick_cost_effective", }, none: { kr: "", color: "", imgName: "", }, };