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

export interface MonthTitleProps {
    year: number;
    month: number;
}

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