import React from "react"; import { capitalize } from "@/utils"; import { Link } from "./Link"; import { ShapesConfig, GetShapesConfig, defaultGetShapesConfig, } from "./ShapesBackground"; import { Title } from "./Title"; import styles from "./ArchivePage.module.css"; export interface Props { type: "news" | "events"; items: { year: string; terms: string[]; }[]; } export function ArchivePage({ items, type }: Props) { return ( <> {[capitalize(type), "Archive"]}

{capitalize(type)} Archive

); } ArchivePage.getShapesConfig = ((width, height) => { return window.innerWidth <= 768 ? ({} as ShapesConfig) : defaultGetShapesConfig(width, height); }) as GetShapesConfig;