import type { CSSProperties, JSXElementConstructor } from "react"; import React from "react"; import { Icon } from "@blueprintjs/core"; import { IconNames } from "@blueprintjs/icons"; import type { IconProps } from "constants/IconConstants"; import { IconWrapper } from "constants/IconConstants"; import { importRemixIcon, importSvg } from "design-system-old"; const InfoIcon = importSvg( async () => import("assets/icons/form/info-outline.svg"), ); const HelpIcon = importSvg( async () => import("assets/icons/form/help-outline.svg"), ); const AddNewIcon = importSvg( async () => import("assets/icons/form/add-new.svg"), ); const LockIcon = importSvg(async () => import("assets/icons/form/lock.svg")); const DeleteIcon = importRemixIcon( async () => import("remixicon-react/DeleteBinLineIcon"), ); /* eslint-disable react/display-name */ export const FormIcons: { [id: string]: JSXElementConstructor; } = { INFO_ICON: (props: IconProps) => ( ), HELP_ICON: (props: IconProps) => ( ), HOME_ICON: (props: IconProps) => ( ), DELETE_ICON: (props: IconProps) => ( ), ADD_NEW_ICON: (props: IconProps) => ( ), CREATE_NEW_ICON: (props: IconProps) => ( ), PLUS_ICON: (props: IconProps) => ( ), SLASH_ICON: (props: IconProps) => ( ), LOCK_ICON: (props: IconProps) => ( ), };