import Title from "@/components/MyPages/Title"

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

import { HeaderProps } from "@/types/components/myPages/stays/title"

export default function Header({ title, subtitle }: HeaderProps) {
  return (
    <header className={styles.header}>
      <Title as="h3" weight="semiBold" uppercase>
        {title}
      </Title>
      <Title as="h5" weight="regular" className={styles.subtitle}>
        {subtitle}
      </Title>
    </header>
  )
}
