const { templateFromJsxCommand } = require('./template-from-jsx-shared')

async function templateLegacyFromJsxCommand(file, opts = {}) {
  return templateFromJsxCommand(file, {
    ...opts,
    groupingStyle: 'lineComments',
    cliName: opts.cliName || 'from-jsx',
    logLabel: `legacy ${opts.cliName || 'from-jsx'}`,
  })
}

module.exports = templateLegacyFromJsxCommand
