@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
9 lines • 371 B
JavaScript
import React from "react";
import * as AllIcons from "@navikt/aksel-icons";
// eslint-disable-next-line import/namespace
const icons = Object.keys(AllIcons).map((key) => AllIcons[key]);
export const RandomIcon = () => {
const Icon = icons[Math.floor(Math.random() * icons.length)];
return React.createElement(Icon, null);
};
//# sourceMappingURL=RandomIcon.js.map