PromucFlow_constructor/app/client/src/widgets/ImageWidget.tsx

27 lines
564 B
TypeScript
Raw Normal View History

2019-09-12 08:11:25 +00:00
import * as React from "react"
import BaseWidget, { IWidgetProps, IWidgetState } from "./BaseWidget"
import { WidgetType } from "../constants/WidgetConstants"
class ImageWidget extends BaseWidget<ImageWidgetProps, IWidgetState> {
getPageView() {
return (
<div/>
)
}
getWidgetType(): WidgetType {
return "IMAGE_WIDGET"
}
}
export type ImageShape = "RECTANGLE" | "CIRCLE" | "ROUNDED"
export interface ImageWidgetProps extends IWidgetProps {
image: string
imageShape: ImageShape
defaultImage: string
}
export default ImageWidget