mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 14:37:21 +01:00
20 lines
317 B
TypeScript
20 lines
317 B
TypeScript
import * as React from 'react'
|
|
import ListItem from './ListItem'
|
|
import { User } from '../interfaces'
|
|
|
|
type Props = {
|
|
items: User[]
|
|
}
|
|
|
|
const List = ({ items }: Props) => (
|
|
<ul>
|
|
{items.map((item) => (
|
|
<li key={item.id}>
|
|
<ListItem data={item} />
|
|
</li>
|
|
))}
|
|
</ul>
|
|
)
|
|
|
|
export default List
|