mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 08:46:39 +00:00
38 lines
845 B
TypeScript
38 lines
845 B
TypeScript
import React, { FC } from "react";
|
|
import Header from "../components/Header";
|
|
import UserAvatar from "./Avatars/UserAvatar";
|
|
import {
|
|
Grid,
|
|
// makeStyles, Theme
|
|
} from "@material-ui/core";
|
|
|
|
interface IProps {
|
|
fullName: string;
|
|
presentation: string;
|
|
picture: string;
|
|
}
|
|
|
|
// const useStyles = makeStyles((theme: Theme) => ({
|
|
// root: {
|
|
// paddingTop: theme.spacing(2),
|
|
// flexGrow: 1,
|
|
// },
|
|
// }));
|
|
|
|
const UserHeader: FC<IProps> = ({ fullName, presentation, picture }) => {
|
|
// const classes = useStyles();
|
|
return (
|
|
// <div className={classes.root}>
|
|
<Grid container>
|
|
<Grid item xs={2}>
|
|
<UserAvatar picture={picture} alt="" />
|
|
</Grid>
|
|
<Grid item xs>
|
|
<Header title={fullName} description={presentation} />
|
|
</Grid>
|
|
</Grid>
|
|
// </div>
|
|
);
|
|
};
|
|
|
|
export default UserHeader;
|