import { hidePropertiesIn , hidePropertyIn , Problem , Properties , StructurePreviewProps , transformGroupsIntoTabs } from "@mendix/piw-utils-internal" ; import { PieChartPreviewProps } from "../typings/PieChartProps" ; export function getProperties ( values , defaultProperties , platform ) { const showAdvancedOptions = values . developerMode !== "basic" ; if ( platform === "web" ) { hidePropertyIn ( defaultProperties , values , "developerMode" ) ; transformGroupsIntoTabs ( defaultProperties ) ; } else { if ( ! showAdvancedOptions ) { hidePropertiesIn ( defaultProperties , values , [ "customLayout" , "customConfigurations" , "customSeriesOptions" , "enableThemeConfig" ] ) ; } } return defaultProperties ; } export function getPreview ( _values ) { return null ; } export function check ( _values ) { const errors = [ ] ; return errors ; }