import React from 'react';
import EasyGUI from '@easyv/react-gui';

export default function StyleConfig({ config = [], onChange }) {
  if (config.length === 0) {
    return null;
  }

  return <EasyGUI config={config} onFieldsChange={onChange} />;
}
