UNPKG

@harvest-profit/npk

Version:
50 lines (37 loc) 2.04 kB
export * from './regular/index'; import CropIcon from "./regular/CropIcon"; import CropFilledIcon from "./regular/CropFilledIcon"; import SettingsIcon from "./regular/SettingsIcon"; import SettingsFilledIcon from "./regular/SettingsFilledIcon"; import HomeFeatureIcon from "./regular/HomeFeatureIcon"; import HomeFeatureFilledIcon from "./regular/HomeFeatureFilledIcon"; import FarmIcon from "./regular/FarmIcon"; import FarmFilledIcon from "./regular/FarmFilledIcon"; import FieldIcon from "./regular/FieldIcon"; import FieldFilledIcon from "./regular/FieldFilledIcon"; import CropPlannerFeatureIcon from "./regular/CropPlannerFeatureIcon"; import CropPlannerFeatureFilledIcon from "./regular/CropPlannerFeatureFilledIcon"; import ContractsIcon from "./regular/ContractsIcon"; import ContractsFilledIcon from "./regular/ContractsFilledIcon"; import FieldOperationsIcon from "./regular/FieldOperationsIcon"; import FieldOperationsFilledIcon from "./regular/FieldOperationsFilledIcon"; import InputsIcon from "./regular/InputsIcon"; import InputsFilledIcon from "./regular/InputsFilledIcon"; import ReportsIcon from "./regular/ReportsIcon"; import ReportsFilledIcon from "./regular/ReportsFilledIcon"; import YieldsIcon from "./regular/YieldsIcon"; import YieldsFilledIcon from "./regular/YieldsFilledIcon"; export function attemptFilledIconForIcon(icon: React.ComponentType<any>) { if (icon === CropIcon) return CropFilledIcon; if (icon === SettingsIcon) return SettingsFilledIcon; if (icon === HomeFeatureIcon) return HomeFeatureFilledIcon; if (icon === CropPlannerFeatureIcon) return CropPlannerFeatureFilledIcon; if (icon === FarmIcon) return FarmFilledIcon; if (icon === FieldIcon) return FieldFilledIcon; if (icon === ContractsIcon) return ContractsFilledIcon; if (icon === FieldOperationsIcon) return FieldOperationsFilledIcon; if (icon === InputsIcon) return InputsFilledIcon; if (icon === ReportsIcon) return ReportsFilledIcon; if (icon === YieldsIcon) return YieldsFilledIcon; return null; }