rickvanlieshout.com/src/utils/get-icon.ts

6 lines
128 B
TypeScript
Raw Normal View History

import { ICONS } from "@/constants";
2018-11-09 18:08:48 +01:00
const getIcon = (name: keyof typeof ICONS) => ICONS[name] || {};
2018-11-09 18:08:48 +01:00
2020-05-08 18:08:44 +02:00
export default getIcon;