rickvanlieshout.com/src/utils/get-icon.ts
2022-04-16 14:53:32 +00:00

6 lines
128 B
TypeScript

import { ICONS } from "@/constants";
const getIcon = (name: keyof typeof ICONS) => ICONS[name] || {};
export default getIcon;