"use strict";

exports.__esModule = true;
exports.default = void 0;

var _util = require("./util");

const reactDomTemplate = (code, config, state) => {
  const props = (0, _util.getProps)(config, state);
  let result = `import React from 'react'\n\n`;
  result += `const ${state.componentName} = ${props} => ${code}\n\n`;
  result += (0, _util.getForwardRef)(config, state);
  result += (0, _util.getExport)(config, state);
  return result;
};

var _default = reactDomTemplate;
exports.default = _default;