/** * @copyright nhcarrigan * @license Naomi's Public License * @author Naomi Carrigan */ /* eslint-disable react/no-multi-comp */ "use client"; import Image from "next/image"; import { useState, type JSX } from "react"; import { CharacterComponent } from "../../components/character"; import { Characters } from "../../config/Legacy"; const HorizontalConnector = ({ colour, }: { readonly colour: string; }): JSX.Element => { return (
); }; const TopToRightConnector = ({ colour, }: { readonly colour: string; }): JSX.Element => { return (
); }; const TopToLeftConnector = ({ colour, }: { readonly colour: string; }): JSX.Element => { return (
); }; const TopToRightToBottomConnector = ({ colour, }: { readonly colour: string; }): JSX.Element => { return (
); }; /** * Renders the /legacy page. * @returns A React Component. */ const Legacy = (): JSX.Element => { const [ focused, setFocused ] = useState("naomi-carrigan"); const handleClick = (id: string) => { return (): void => { setFocused(id); }; }; return (

{`The Carrigan Legacy`}

Nine anime-style female characters with diverse colorful outfits including dresses, crop tops, skirts, and pants, posing together against a light background, some making peace signs or pointing at the viewer

{`This page serves to show off all of our characters, who are all part of the same family (and thus, the same legacy).`}

{`Click on a character to learn more about them!`}

{Characters[focused]?.name}

{Characters[focused]?.alt

{Characters[focused]?.class}{" - "}{`${Characters[focused]?.age.toString() ?? "unknown"} years old`}

{`Biography`}

{Characters[focused]?.bio.join(" ")}

{`Combat Profile`}

{Characters[focused]?.combat.join(" ")}

); }; export default Legacy;