KoniItemPanel.js 1.22 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
import React from 'react';
import { Card } from 'antd';
import { ItemPanel, Item } from 'gg-editor';
import styles from './index.less';

const KoniItemPanel = () => {
  return (
    <ItemPanel className={styles.itemPanel}>
      <Card bordered={false}>
        <Item
          type="node"
          size="40"
          shape="koni-custom-node"
          model={{
            color: '#69C0FF',
            label: 'Bank',
            labelOffsetY: 28,
            icon: '/ggeditor/koni/icon.svg',
          }}
          src="/ggeditor/koni/bank.svg"
        />
        <Item
          type="node"
          size="40"
          shape="koni-custom-node"
          model={{
            color: '#5CDBD3',
            label: 'Person',
            labelOffsetY: 28,
            icon: '/ggeditor/koni/icon.svg',
          }}
          src="/ggeditor/koni/person.svg"
        />
        <Item
          type="node"
          size="40"
          shape="koni-custom-node"
          model={{
            color: '#B37FEB',
            label: 'Country',
            labelOffsetY: 28,
            icon: '/ggeditor/koni/icon.svg',
          }}
          src="/ggeditor/koni/country.svg"
        />
      </Card>
    </ItemPanel>
  );
};

export default KoniItemPanel;