export const PAY_HISTORY_APP = {
  id: 'pay-history',
  name: 'Pay History',
  description: 'View employee pay history and paystubs',
  html: `<!DOCTYPE html><html><head><meta charset="utf-8"><title>Pay History</title>
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<style>* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f5; padding: 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.header { background: white; padding: 24px; border-radius: 8px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
table { width: 100%; background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-collapse: collapse; }
th { text-align: left; padding: 16px; border-bottom: 2px solid #eee; background: #fafafa; }
td { padding: 16px; border-bottom: 1px solid #eee; }
.download { color: #ff6b35; cursor: pointer; text-decoration: none; }
</style></head><body><div id="root"></div>
<script type="text/babel">
function PayHistory() {
  const payStubs = [
    { date: 'Jan 5, 2025', period: 'Dec 16-31, 2024', gross: '$5,200', net: '$3,952' },
    { date: 'Dec 22, 2024', period: 'Dec 1-15, 2024', gross: '$5,200', net: '$3,952' },
    { date: 'Dec 8, 2024', period: 'Nov 16-30, 2024', gross: '$5,200', net: '$3,952' },
  ];
  return (<div className="container"><div className="header"><h1>📄 Pay History</h1><p>Sarah Johnson - Employee Paystubs</p></div>
  <table><thead><tr><th>Pay Date</th><th>Pay Period</th><th>Gross Pay</th><th>Net Pay</th><th>Action</th></tr></thead>
  <tbody>{payStubs.map((p, i) => (<tr key={i}><td>{p.date}</td><td>{p.period}</td><td>{p.gross}</td>
  <td style={{ fontWeight: 600 }}>{p.net}</td><td><a href="#" className="download">Download PDF</a></td></tr>))}</tbody></table></div>);
}
ReactDOM.render(<PayHistory />, document.getElementById('root'));
</script></body></html>`,
};
