diff --git a/dotcom-rendering/src/components/Card/components/CardFooter.tsx b/dotcom-rendering/src/components/Card/components/CardFooter.tsx index 93fd440b5d..9f82d419a0 100644 --- a/dotcom-rendering/src/components/Card/components/CardFooter.tsx +++ b/dotcom-rendering/src/components/Card/components/CardFooter.tsx @@ -2,6 +2,7 @@ import { css } from '@emotion/react'; import { palette, space, textSansBold12 } from '@guardian/source/foundations'; import { SvgCamera } from '@guardian/source/react-components'; import { Pill } from '../../../components/Pill'; +import { SvgMediaControlsPlay } from '../../../components/SvgMediaControlsPlay'; import { type ArticleFormat, ArticleSpecial } from '../../../lib/articleFormat'; import type { MainMedia } from '../../../types/mainMedia'; @@ -46,6 +47,7 @@ type Props = { cardBranding?: JSX.Element; mediaType?: MainMedia['type']; galleryCount?: number; + audioDuration?: string; }; export const CardFooter = ({ @@ -56,6 +58,7 @@ export const CardFooter = ({ showLivePlayable, mediaType, galleryCount, + audioDuration, }: Props) => { if (showLivePlayable) return null; @@ -63,6 +66,17 @@ export const CardFooter = ({ return ; } + if (mediaType === 'Audio' && audioDuration !== undefined) { + return ( + + ); + } + if (mediaType === 'Gallery') { return (