import { parseStyle } from "@mendix/piw-utils-internal" ; import { createElement , ReactElement } from "react" ; import { BadgePreviewProps } from "../typings/BadgeProps" ; import { Badge } from "./components/Badge" ; export const preview = ( props ) : ReactElement => { const { className , style , type , value } = props ; return < Badge type = { type } value = { value ? value : "" } className = { className } style = { parseStyle ( style ) } / > ; } ;