How to use the megadraft.MegadraftIcons.MediaMediumIcon function in megadraft

To help you get started, we’ve selected a few megadraft examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github globocom / generator-megadraft-plugin / generators / app / templates / src / plugin.js View on Github external
import { MegadraftIcons } from "megadraft";

import Button from "./Button";
import Block from "./Block";
import constants from "./constants";

export default {
  title: constants.PLUGIN_NAME,
  type: constants.PLUGIN_TYPE,
  buttonComponent: Button,
  blockComponent: Block,
  options: {
    defaultDisplay: "medium",
    displayOptions: [
      { key: "small", icon: MegadraftIcons.MediaSmallIcon, label: "SMALL" },
      { key: "medium", icon: MegadraftIcons.MediaMediumIcon, label: "MEDIUM" },
      { key: "big", icon: MegadraftIcons.MediaBigIcon, label: "BIG" },
    ],
  },
};