const templateV2FromJsxCommand = require('./template-v2-from-jsx')

/**
 * V2: same as `template from-jsx`, but requires a .ts or .tsx source file.
 */
async function templateV2FromTsxCommand(file, opts = {}) {
  return templateV2FromJsxCommand(file, {
    ...opts,
    typescriptOnly: true,
    cliName: 'from-tsx',
  })
}

module.exports = templateV2FromTsxCommand
