({ items }: { items: React.ReactNode[] })
| 3 | import React from 'react'; |
| 4 | |
| 5 | export function List({ items }: { items: React.ReactNode[] }) { |
| 6 | return ( |
| 7 | <ul style={{ paddingLeft: 20 }}> |
| 8 | {items.map((node, index) => ( |
| 9 | <li key={index.toString()}> |
| 10 | <Text style={{ marginBottom: 2, marginTop: 2 }}>{node}</Text> |
| 11 | </li> |
| 12 | ))} |
| 13 | </ul> |
| 14 | ); |
| 15 | } |