mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-24 07:30:19 +01:00
19 lines
303 B
TypeScript
19 lines
303 B
TypeScript
import React from 'react'
|
|
import Link from 'next/link'
|
|
|
|
import { User } from '../interfaces'
|
|
|
|
type Props = {
|
|
data: User
|
|
}
|
|
|
|
const ListItem = ({ data }: Props) => (
|
|
<Link href="/detail/[id]" as={`/detail/${data.id}`}>
|
|
<a>
|
|
{data.id}: {data.name}
|
|
</a>
|
|
</Link>
|
|
)
|
|
|
|
export default ListItem
|