This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/src/common/AppLayout/components/Sidebar/components/CurrentUser/CurrentUser.tsx

20 lines
439 B
TypeScript

import React from 'react';
import { useAuth } from 'libs/auth';
import { Box, Typography } from '@material-ui/core';
const CurrentUser = () => {
const { user } = useAuth();
return (
<Box pr={0.5} pl={0.5}>
<Typography variant="h6" align="center">
Jesteś zalogowany jako: <br /> <strong>{user?.displayName}</strong> (ID:{' '}
{user?.id})
</Typography>
</Box>
);
};
export default CurrentUser;