import { FC } from "react";
import { formatYearMonth } from "../lib/format";

export interface MonthTitleProps {
    yearMonth: number;
}

export const MonthTitle:FC<MonthTitleProps> = ({yearMonth}) =>
<div className="divider text-2xl">{`${formatYearMonth(yearMonth)}`}</div>