25 lines
594 B
TypeScript
25 lines
594 B
TypeScript
import Title from "@/components/MyPages/Title"
|
|
|
|
import Friend from "./Friend"
|
|
import Stats from "./Stats"
|
|
|
|
import styles from "./overview.module.css"
|
|
|
|
import type { OverviewProps } from "@/types/components/myPages/myPage/overview"
|
|
|
|
export default function Overview({ user }: OverviewProps) {
|
|
return (
|
|
<section className={styles.container}>
|
|
<header>
|
|
<Title as="h2" uppercase>
|
|
Good morning
|
|
</Title>
|
|
</header>
|
|
<section className={styles.overview}>
|
|
<Friend user={user} />
|
|
<Stats user={user} />
|
|
</section>
|
|
</section>
|
|
)
|
|
}
|