UNPKG

@stianlarsen/react-ui-kit

Version:

A versatile React UI kit focused on delivering ready-to-use, customizable buttons for every use case. Designed to save developers time and streamline UI development, this kit offers a range of button styles and loaders, ensuring immediate integration and

12 lines (11 loc) 310 B
import { jsx as _jsx } from "react/jsx-runtime"; export const getIcon = (icon) => { if (typeof icon === "string") { return _jsx("img", { src: icon, alt: "icon" }); } if (typeof icon === "function") { const Icon = () => icon; return _jsx(Icon, {}); } return icon; };