import React from 'react';
import { Skeleton, Card, Avatar } from 'antd';
import { Popconfirm } from 'antd';
import {
EditOutlined,
LogoutOutlined,
SettingOutlined,
} from '@ant-design/icons';
import { useAuth0, User } from '@auth0/auth0-react';
const { Meta } = Card;
export interface UserCardProps {
loading: boolean;
user?: User;
}
export function UserCard({ user, loading }: UserCardProps) {
const { logout } = useAuth0();
const handleLogout = () => {
logout();
window.location.reload();
};
return (
,
,
{}}
okText="Yes"
cancelText="No"
>
,
]}
>
}
title={user?.name}
description={user?.email}
/>
);
}