const templateLegacyFromJsxCommand = require('./template-legacy-from-jsx')

/**
 * V1 $() codemod: same as `template legacy from-jsx`, but requires a .ts or .tsx source file.
 */
async function templateLegacyFromTsxCommand(file, opts = {}) {
  return templateLegacyFromJsxCommand(file, {
    ...opts,
    typescriptOnly: true,
    cliName: 'from-tsx',
  })
}

module.exports = templateLegacyFromTsxCommand
