import { CameraModeTypes } from "./constants"; import IconSVG from "./icon.svg"; import Widget from "./widget"; export const CONFIG = { type: Widget.getWidgetType(), name: "Camera", // The display name which will be made in uppercase and show in the widgets panel ( can have spaces ) iconSVG: IconSVG, needsMeta: true, // Defines if this widget adds any meta properties isCanvas: false, // Defines if this widget has a canvas within in which we can drop other widgets searchTags: ["photo", "video recorder"], defaults: { widgetName: "Camera", rows: 33, columns: 25, mode: CameraModeTypes.CAMERA, isDisabled: false, isVisible: true, isMirrored: true, version: 1, }, properties: { derived: Widget.getDerivedPropertiesMap(), default: Widget.getDefaultPropertiesMap(), meta: Widget.getMetaPropertiesMap(), config: Widget.getPropertyPaneConfig(), contentConfig: Widget.getPropertyPaneContentConfig(), styleConfig: Widget.getPropertyPaneStyleConfig(), }, }; export default Widget;