1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-24 07:30:19 +01:00
upscayl/renderer/components/ListItem.tsx
Nayam Amarshe 0e1e2d1229 Init
2022-08-02 14:28:24 +05:30

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