// Script to replace samsung-card with hermes-card in all component files
const fs = require('fs');
const path = require('path');

const componentsDir = './components';
const files = [
  'MaterialManagement.tsx',
  'EquipmentManagement.tsx', 
  'SystemManagement.tsx',
  'MasterData.tsx',
  'BOMManagement.tsx',
  'OrderManagement.tsx',
  'ShippingManagement.tsx',
  'QualityManagement.tsx',
  'ProductionManagement.tsx',
  'Reports.tsx',
  'Board.tsx',
  'Dashboard.tsx'
];

files.forEach(fileName => {
  const filePath = path.join(componentsDir, fileName);
  if (fs.existsSync(filePath)) {
    let content = fs.readFileSync(filePath, 'utf8');
    content = content.replace(/samsung-card/g, 'hermes-card');
    content = content.replace(/samsung-gradient-card/g, 'hermes-gradient-card');
    content = content.replace(/samsung-hero-gradient/g, 'hermes-hero-gradient');
    fs.writeFileSync(filePath, content, 'utf8');
    console.log(`Updated ${fileName}`);
  }
});