@limetech/lime-elements
Version:
19 lines (18 loc) • 436 B
JavaScript
import React from 'react';
/**
*
* @param schema
*/
export function getHelpComponent(schema) {
var _a;
const help = (_a = schema.lime) === null || _a === void 0 ? void 0 : _a.help;
if (!help) {
return;
}
if (typeof help === 'string') {
return React.createElement('limel-help', { value: help });
}
const helpProps = help;
return React.createElement('limel-help', helpProps);
}
//# sourceMappingURL=help.js.map