mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
27 lines
881 B
TypeScript
27 lines
881 B
TypeScript
import Link from 'next/link'
|
|
import DiscordAvatar from '@components/DiscordAvatar'
|
|
|
|
const Owner: React.FC<OwnerProps> = ({ id, username, tag }) => {
|
|
return (
|
|
<Link href={`/users/${id}`}>
|
|
<a className='dark:hover:bg-discord-dark-hover flex mb-1 px-4 py-4 text-black dark:text-gray-400 text-base dark:bg-discord-black bg-little-white hover:bg-little-white-hover rounded cursor-pointer'>
|
|
<div className='relative flex-shrink-0 mr-3 mt-1 w-8 h-8 rounded-full shadow-inner overflow-hidden'>
|
|
<DiscordAvatar userID={id} className='z-negative absolute inset-0 w-full h-full' />
|
|
</div>
|
|
<div className='flex-1 w-0 leading-snug'>
|
|
<h4 className='whitespace-nowrap'>{username}</h4>
|
|
<span className='text-gray-600 text-sm'>#{tag}</span>
|
|
</div>
|
|
</a>
|
|
</Link>
|
|
)
|
|
}
|
|
|
|
export default Owner
|
|
|
|
interface OwnerProps {
|
|
id: string
|
|
tag: string
|
|
username: string
|
|
}
|