import * as React from 'react';
import { FastTooltip, FastIcon } from 'components/ui';
import { isString } from 'utils/isType';
import { Component } from 'components/types';
function ModuleBox({ config, children }: {
config: Component.Business.ModuleConfig,
children: any
}) {
const {
uuid,
name,
desc = '',
} = config;
const renderDesc = () => {
if (isString(desc)) {
return `(${desc})`;
}
if ((desc as Component.Business.Desc).type === 'normal' && (desc as Component.Business.Desc).text) {
return `(${(desc as Component.Business.Desc).text})`;
}
return (