import React from "react" ; import { EnumValuesChip } from "./CustomChip" ; import { PreviewComponentProps } from "../internal" ; category export function NumberPreview ( { name , value , property , size } ) { if ( property . config ?. enumValues ) { const enumKey = value ; const enumValues = property . config . enumValues ; return < EnumValuesChip enumKey = { enumKey } enumValues = { enumValues } small = { size !== "regular" } />; } else { return < > { value } < />; } }