# Conflicts: # src/constants/ActionConstants.tsx # src/constants/WidgetConstants.tsx # src/editorComponents/CheckboxComponent.tsx # src/editorComponents/RadioGroupComponent.tsx # src/mockResponses/WidgetCardsPaneResponse.tsx # src/pages/Editor/Canvas.tsx # src/pages/Editor/EditorDragLayer.tsx # src/reducers/entityReducers/index.tsx # src/reducers/index.tsx # src/utils/WidgetRegistry.tsx # src/widgets/BaseWidget.tsx # src/widgets/BreadcrumbsWidget.tsx # src/widgets/ButtonWidget.tsx # src/widgets/CalloutWidget.tsx # src/widgets/CheckboxWidget.tsx # src/widgets/IconWidget.tsx # src/widgets/InputGroupWidget.tsx # src/widgets/NumericInputWidget.tsx # src/widgets/RadioGroupWidget.tsx # src/widgets/TagInputWidget.tsx # src/widgets/TextWidget.tsx
24 lines
556 B
TypeScript
24 lines
556 B
TypeScript
import * as React from "react";
|
|
import BaseWidget, { WidgetProps, WidgetState } from "./BaseWidget";
|
|
import { WidgetType } from "../constants/WidgetConstants";
|
|
|
|
class ImageWidget extends BaseWidget<ImageWidgetProps, WidgetState> {
|
|
getPageView() {
|
|
return <div />;
|
|
}
|
|
|
|
getWidgetType(): WidgetType {
|
|
return "IMAGE_WIDGET";
|
|
}
|
|
}
|
|
|
|
export type ImageShape = "RECTANGLE" | "CIRCLE" | "ROUNDED";
|
|
|
|
export interface ImageWidgetProps extends WidgetProps {
|
|
image: string;
|
|
imageShape: ImageShape;
|
|
defaultImage: string;
|
|
}
|
|
|
|
export default ImageWidget;
|