import React from 'react'; import useSWR from 'swr'; // import { Endpoints } from '@octokit/types'; import Layout from '@theme/Layout'; import { Release } from '../../utils/github'; import { FirmwareCard } from './_components/FirmwareCard'; const Firmware = (): JSX.Element => { const fetcher = (url: string) => fetch(url).then((res) => res.json()); const { data, error } = useSWR( "https://api.github.com/repos/meshtastic/meshtastic-device/releases", fetcher ); const beta = data?.filter((release) => release.prerelease === false); const alpha = data?.filter((release) => release.prerelease === true); return (
    {/* */} {/* */} {/* */}

    Bleeding

    Latest successful CI build. For those who want to break things.

    {/* */}
); }; export default Firmware;