mirror of
https://github.com/upscayl/upscayl.git
synced 2026-02-19 11:55:37 -05:00
20 lines
312 B
TypeScript
20 lines
312 B
TypeScript
import 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
|