import { Section } from "@/components/Section"
import { SectionHeader } from "@/components/Section/Header"

import ClaimPoints from "../ClaimPoints"
import { PointTransactionList } from "./PointTransactionList"

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

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

export function PointTransactions({
  link,
  subtitle,
  title,
}: AccountPageComponentProps) {
  return (
    <Section>
      <div className={styles.header}>
        <SectionHeader link={link} preamble={subtitle} heading={title} />
        <ClaimPoints />
      </div>
      <PointTransactionList />
    </Section>
  )
}
