const fs = require('fs');
function fix(filename) {
let code = fs.readFileSync(filename, 'utf8');
// Regex to find the
...
or similar that wraps the add button.
// We can just find `{canEdit && ` and ``
// A more robust approach:
// Instead of replacing the JSX, let's just create a string replacement loop for known patterns.
code = code.replace(
/