import React from 'react'; import { Release } from '@site/src/utils/github'; export interface releaseCardProps { variant: string; description: string; release?: Release[]; } export const FirmwareCard = ({ variant, description, release, }: releaseCardProps): JSX.Element => { return (

{variant}

{release?.length && {release[0].tag_name}}

{description}

{release?.length ? ( <> Download

Older versions

{release.slice(1, 6).map((release) => { return (
{release.tag_name}
); })}
) : ( )}
); }; export const PlaceholderFirmwareCard = (): JSX.Element => { return (
 
); };