export const CONTRACTOR_PAYMENTS_APP = {
  id: 'contractor-payments',
  name: 'Contractor Payments',
  description: 'Log and track contractor payments',
  html: `<!DOCTYPE html><html><head><meta charset="utf-8"><title>Contractor Payments</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; }
.btn { padding: 12px 24px; background: #ff6b35; color: white; border: none; border-radius: 6px; cursor: pointer; margin-bottom: 20px; }
</style></head><body><div id="root"></div>
<script type="text/babel">
function ContractorPayments() {
  const payments = [
    { contractor: 'Alex Design Co.', date: 'Jan 2, 2025', amount: '$5,000', description: 'December retainer' },
    { contractor: 'Sarah Martinez', date: 'Dec 28, 2024', amount: '$2,500', description: 'Website redesign' },
    { contractor: 'Tech Solutions LLC', date: 'Jan 5, 2025', amount: '$8,200', description: 'Q4 development' },
  ];
  return (<div className="container"><div className="header"><h1>💸 Contractor Payments</h1><p>Record and track contractor payments for 1099 reporting</p>
  <button className="btn">+ New Payment</button></div>
  <table><thead><tr><th>Contractor</th><th>Date</th><th>Amount</th><th>Description</th></tr></thead>
  <tbody>{payments.map((p, i) => (<tr key={i}><td>{p.contractor}</td><td>{p.date}</td>
  <td style={{ fontWeight: 600 }}>{p.amount}</td><td>{p.description}</td></tr>))}</tbody></table></div>);
}
ReactDOM.render(<ContractorPayments />, document.getElementById('root'));
</script></body></html>`,
};
