You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
611 B
30 lines
611 B
import React, { FC, useEffect } from 'react'
|
|
import { setTitle } from 'src/utils'
|
|
|
|
import { Entity } from 'src/types'
|
|
|
|
import PageHeader from 'src/components/page-header'
|
|
|
|
interface Props {
|
|
user?: Entity
|
|
}
|
|
|
|
const Self: FC<Props> = ({ user }) => {
|
|
useEffect(() => {
|
|
if (user) setTitle(user.name as string)
|
|
}, [user])
|
|
|
|
return (
|
|
<div>
|
|
<PageHeader title={user ? user.name as string : '?'} />
|
|
|
|
<div className="main-content">
|
|
<p>
|
|
Hello.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Self
|