import SectionContainer from "@/components/Section/Container"
import SectionHeader from "@/components/Section/Header"
import SectionLink from "@/components/Section/Link"

import ClaimPoints from "../ClaimPoints"
import JourneyTable from "./JourneyTable"

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

import type { AccountPageComponentProps } from "@/types/components/myPages/myPage/accountPage"

export default function EarnAndBurn({
  link,
  subtitle,
  title,
}: AccountPageComponentProps) {
  return (
    <SectionContainer>
      <div className={styles.header}>
        <SectionHeader title={title} link={link} preamble={subtitle} />

        <ClaimPoints />
      </div>
      <JourneyTable />
      <SectionLink link={link} variant="mobile" />
    </SectionContainer>
  )
}
