import Friend from "./Friend"
import Stats from "./Stats"
import Title from "@/components/MyPages/Title"

import styles from "./overview.module.css"

import type { OverviewProps } from "@/types/components/myPages/overview"

export default function Overview({ user }: OverviewProps) {
  return (
    <section className={styles.container}>
      <header>
        <Title uppercase>Good morning</Title>
      </header>
      <section className={styles.overview}>
        <Friend user={user} />
        <Stats user={user} />
      </section>
    </section>
  )
}
