import React from 'react' import { useTranslation } from 'next-i18next' import ContentUpdate from '~components/about/ContentUpdate' import ChangelogUnit from '~components/about/ChangelogUnit' import './index.scss' const UpdatesPage = () => { const { t: common } = useTranslation('common') const { t: updates } = useTranslation('updates') const versionUpdates = { '1.0.0': 5, '1.0.1': 4, '1.1.0': { updates: 10, bugs: 4, images: [ 'remix', 'unauth', 'transcendence', 'accessories', 'mastery', 'mechanics', 'rare', 'urls', 'nav', 'toasts', ], }, '202302U2': { updates: 1, }, } function image( alt: string, url: string, filename: string, extension: string ) { const fallback = `${url}/${filename}.${extension}` let set = [] for (let i = 1; i < 3; i++) { if (i === 1) set.push(fallback) else set.push(`${url}/${filename}@${i}x.${extension} ${i}x`) } const sizes = set.join(', ') return {alt} } return (

{common('about.segmented_control.updates')}

1.1.0

{updates('labels.features')}

    {[...Array(versionUpdates['1.1.0'].updates)].map((e, i) => (
  • {image( updates(`versions.1.1.0.features.${i}.title`), `${process.env.NEXT_PUBLIC_SIERO_IMG_URL}/updates`, versionUpdates['1.1.0'].images[i], 'jpg' )}

    {updates(`versions.1.1.0.features.${i}.title`)}

    {updates(`versions.1.1.0.features.${i}.blurb`)}

  • ))}

Bug fixes

    {[...Array(versionUpdates['1.1.0'].bugs)].map((e, i) => (
  • {updates(`versions.1.1.0.bugs.${i}`)}
  • ))}

{`${updates('events.date', { year: 2023, month: 2, })} ${updates('events.uncap')}`}

{updates('labels.uncaps.characters')}

{updates('labels.uncaps.weapons')}

{updates('labels.uncaps.summons')}

{`${updates('events.date', { year: 2023, month: 1, })} ${updates('events.legfest')}`}

{updates('labels.characters')}

{updates('labels.weapons')}

{`${updates('events.date', { year: 2023, month: 1, })} ${updates('events.flash')}`}

{updates('labels.characters')}

{updates('labels.weapons')}

{`${updates('events.date', { year: 2023, month: 1, })} ${updates('events.uncap')}`}

{updates('labels.uncaps.characters')}

1.0.1

    {[...Array(versionUpdates['1.0.1'])].map((e, i) => (
  • {updates(`versions.1.0.1.features.${i}`)}
  • ))}

{`${updates('events.date', { year: 2022, month: 12 })} ${updates( 'events.legfest' )}`}

{updates('labels.characters')}

{updates('labels.weapons')}

{updates('labels.summons')}

{`${updates('events.date', { year: 2022, month: 12 })} ${updates( 'events.flash' )}`}

{updates('labels.characters')}

{updates('labels.weapons')}

1.0.0

    {[...Array(versionUpdates['1.0.0'])].map((e, i) => (
  • {updates(`versions.1.0.0.features.${i}`)}
  • ))}
) } export default UpdatesPage