import React from 'react' import {Box, Stack, useTheme} from "@mui/material"; import StarCoinModal from "./modals/star-coin"; import {getCDNUrl} from "../helpers/cdn"; import {useModal} from "mui-modal-provider"; import {ProfileInterface} from "../interfaces"; export interface AccountProps { profile: ProfileInterface, onAvatarClick: any } export const Account = ({profile, onAvatarClick}: AccountProps) => { const theme = useTheme() const isDark = theme.palette.mode === 'dark' const {showModal} = useModal() return showModal(StarCoinModal)} > {'star-coin'} {profile?.star_coin} avatar }