// app/my-page/page.tsx export default function MyPage() { // Dummy data const orders = [ { id: '12345', date: '2023-10-26', total: '$150.00', status: 'Shipped' }, { id: '67890', date: '2023-11-05', total: '$75.50', status: 'Processing' }, { id: '10112', date: '2023-11-15', total: '$220.00', status: 'Delivered' }, ]; const quotes = [ { id: 'Q1001', date: '2023-10-20', total: '$500.00', status: 'Accepted' }, { id: 'Q1002', date: '2023-11-01', total: '$1250.75', status: 'Pending' }, ]; const downloads = [ { name: 'Product Manual X123.pdf', url: '#' }, { name: 'Software License - MyProduct v2.txt', url: '#' }, { name: 'Invoice_INV2023-10-26.pdf', url: '#' }, ]; const userProfile = { name: 'Jane Doe', email: 'jane.doe@example.com', company: 'Innovate Solutions Ltd.', memberSince: '2022-01-15', }; const sectionStyle = { marginBottom: '40px', paddingBottom: '20px', borderBottom: '1px solid #eee' }; const headingStyle = { color: '#333', marginBottom: '15px' }; const tableCellStyle = { border: '1px solid #ddd', padding: '10px', textAlign: 'left' as const // Explicitly type textAlign }; const buttonStyle = { padding: '10px 15px', backgroundColor: '#007bff', color: 'white', border: 'none', borderRadius: '4px', cursor: 'pointer', fontSize: '1em' }; return (
Order ID | Date | Total | Status |
---|---|---|---|
#{order.id} | {order.date} | {order.total} | {order.status} |
You have no past orders.
)}You have no active quotes.
)}No downloads available.
)}Name: {userProfile.name}
Email: {userProfile.email}
Company: {userProfile.company}
Member Since: {userProfile.memberSince}