import useUserArtists, { useMutationLikeAArtist } from '@/web/api/hooks/useUserArtists' import Icon from '@/web/components/Icon' import { openContextMenu } from '@/web/states/contextMenus' import player from '@/web/states/player' import { cx } from '@emotion/css' import { useTranslation } from 'react-i18next' import { useParams } from 'react-router-dom' const Actions = ({ isLoading }: { isLoading: boolean }) => { const { t } = useTranslation() const { data: likedArtists } = useUserArtists() const params = useParams() const id = Number(params.id) || 0 const isLiked = !!likedArtists?.data?.find(artist => artist.id === id) const likeArtist = useMutationLikeAArtist() return (
{/* Menu */} {/* Like */}
{/* Listen */}
) } export default Actions