PromucFlow_constructor/app/client/src/icons/FormIcons.tsx

29 lines
838 B
TypeScript
Raw Normal View History

2019-10-21 15:12:45 +00:00
import React from "react";
import { Icon } from "@blueprintjs/core";
import { IconNames } from "@blueprintjs/icons";
2019-11-25 05:07:27 +00:00
import { IconProps, IconWrapper } from "constants/IconConstants";
import { ReactComponent as DeleteIcon } from "assets/icons/form/trash.svg";
import { ReactComponent as AddNewIcon } from "assets/icons/form/add-new.svg";
2019-10-21 15:12:45 +00:00
/* eslint-disable react/display-name */
export const FormIcons: {
[id: string]: Function;
} = {
DELETE_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<DeleteIcon />
</IconWrapper>
),
ADD_NEW_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<AddNewIcon />
</IconWrapper>
),
2019-10-21 15:12:45 +00:00
PLUS_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<Icon icon={IconNames.PLUS} color={props.color} iconSize={props.height} />
</IconWrapper>
),
};