mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
feat: added Label
This commit is contained in:
parent
56e39a9e28
commit
68614ebbb4
15
components/Labal.tsx
Normal file
15
components/Labal.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import Link from 'next/link'
|
||||
|
||||
const Label = ({ href, text }:LabelProps):JSX.Element => {
|
||||
return href ? <Link href={href}>
|
||||
<a className='text-base bg-little-white dark:bg-discord-black text-black dark:text-gray-400 px-2 py-1 rounded mr-1 mb-1 hover:bg-little-white-hover dark:hover:bg-discord-dark-hover'>{text}</a>
|
||||
</Link> : <a className='text-base bg-little-white dark:bg-discord-black text-black dark:text-gray-400 px-2 py-1 rounded mr-1 mb-1'>{text}</a>
|
||||
}
|
||||
|
||||
interface LabelProps {
|
||||
href?: string
|
||||
text: string
|
||||
icon?: string
|
||||
}
|
||||
|
||||
export default Label
|
||||
Loading…
x
Reference in New Issue
Block a user