mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
27 lines
755 B
TypeScript
27 lines
755 B
TypeScript
import HeartIcon from '@heroicons/react/24/outline/HeartIcon'
|
|
import { useNavigate } from 'react-router-dom'
|
|
|
|
import { useAuth } from '#components/Auth/useAuth'
|
|
|
|
export const GratitudeControl = () => {
|
|
const navigate = useNavigate()
|
|
const { isAuthenticated } = useAuth()
|
|
|
|
if (isAuthenticated) {
|
|
return (
|
|
<div className='tw-card tw-bg-base-100 tw-shadow-xl tw-mt-2 tw-w-fit'>
|
|
{
|
|
<div
|
|
className='tw-card-body hover:tw-bg-slate-300 tw-card tw-p-2 tw-h-10 tw-w-10 tw-transition-all tw-duration-300 hover:tw-cursor-pointer'
|
|
onClick={() => {
|
|
navigate('/select-user')
|
|
}}
|
|
>
|
|
<HeartIcon />
|
|
</div>
|
|
}
|
|
</div>
|
|
)
|
|
} else return <></>
|
|
}
|