import updateImport from "./update-import";

module.exports = function (file, api, options) {
    var j = api.jscodeshift;
    var root = j(file.source);

    updateImport(
        j,
        root,
        {
            importName: "Prefetch",
            importSource: "@nfl/gridiron",
            newName: "Prefetch",
            newSource: "react-wildcat-prefetch"
        }
    );

    return root.toSource(options);
};

@@ -277,16 +277,23 @@
 gridiron
+/addons
 %22,%0A     

Fix prefetch import selector