import React, { useState } from 'react'
import { useTranslation } from 'next-i18next'
import classNames from 'classnames'
import ContentUpdate2022 from '../updates/ContentUpdate2022'
import ContentUpdate2023 from '../updates/ContentUpdate2023'
import ContentUpdate2024 from '../updates/ContentUpdate2024'
import styles from './index.module.scss'
const UpdatesPage = () => {
const { t: common } = useTranslation('common')
const { t: updates } = useTranslation('updates')
const classes = classNames(styles.updates, 'PageContent')
const [activeYear, setActiveYear] = useState(new Date().getFullYear())
const getYearButtonClass = (year: number) =>
classNames({
[styles.yearButton]: true,
[styles.active]: activeYear === year,
})
// Render the component based on the active year
const renderContentUpdate = () => {
switch (activeYear) {
case 2022:
return