21 lines
467 B
React
21 lines
467 B
React
|
import React from "react";
|
||
|
import { PageTitleStyled } from "./PageTitle.style";
|
||
|
import UserBtn from "./UserBtn/UserBtn";
|
||
|
|
||
|
import { AuthContext } from "../../context/Auth/AuthContext";
|
||
|
|
||
|
import logo from "../../assets/images/Logo.png"
|
||
|
|
||
|
const PageTitle = () => {
|
||
|
const { user } = React.useContext(AuthContext);
|
||
|
return (
|
||
|
<PageTitleStyled>
|
||
|
<h1>PageTitle</h1>
|
||
|
<UserBtn user={user} img={logo}/>
|
||
|
</PageTitleStyled>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default PageTitle;
|
||
|
|