/** * @copyright nhcarrigan * @license Naomi's Public License * @author Naomi Carrigan */ "use client"; import type { JSX } from "react"; /** * Renders the /contribute page. * @returns A React Component. */ const ContributeComponent = (): JSX.Element => { return (

{`Open for Contribution~!`}

{`Our issue tracker is currently unavailable while we work with the Codeberg team to address rate limit issues.`}

); /* *To be restored when rate-limit is lifted. *const [ issues, setIssues ] = useState< *Array<{ * labels: Array; * number: number; * title: string; * url: string; * body: string; *}> *>([]); * *useEffect(() => { *void fetch("/api/contribute"). * then(async(data) => { * // eslint-disable-next-line @typescript-eslint/consistent-type-assertions * return (await data.json()) as Array<{ * labels: Array; * number: number; * title: string; * url: string; * body: string; * }>; * }). * then((data) => { * setIssues(data); * }); *}, []); * *if (issues.length === 0) { *return ( *
*

{`Open for Contribution~!`}

*
*

{`Loading...`}

*
*
*); *} * *return ( *
*

{`Open for Contribution~!`}

*
*

{`Heya! This page lists issues across all of our projects that are currently open for contribution. * We'd love to have you work on one!`}

* *
    * {issues.map((act) => { * return ( * * ); * })} *
*
*
*); */ }; export default ContributeComponent;