diff --git a/dotcom-rendering/src/components/MediaMeta.tsx b/dotcom-rendering/src/components/MediaMeta.tsx index 41e6806347..831761e6e9 100644 --- a/dotcom-rendering/src/components/MediaMeta.tsx +++ b/dotcom-rendering/src/components/MediaMeta.tsx @@ -1,44 +1,10 @@ -import { css } from '@emotion/react'; import { SvgAudio, SvgCamera, SvgVideo, } from '@guardian/source/react-components'; -import { palette as themePalette } from '../palette'; import type { MediaType } from '../types/layout'; -type Props = { - mediaType: MediaType; - hasKicker: boolean; -}; - -const iconWrapperStyles = (hasKicker: boolean) => css` - width: 24px; - height: 24px; - /* We’re using the text colour for the icon badge */ - background-color: ${hasKicker - ? themePalette('--card-kicker-text') - : themePalette('--card-footer-text')}; - border-radius: 50%; - display: inline-block; - - > svg { - width: 20px; - height: 20px; - margin-left: auto; - margin-right: auto; - margin-top: 2px; - display: block; - fill: ${themePalette('--card-media-icon')}; - } -`; - -const wrapperStyles = css` - display: flex; - align-items: center; - margin-top: 4px; -`; - export const Icon = ({ mediaType }: { mediaType: MediaType }) => { switch (mediaType) { case 'Gallery': @@ -49,25 +15,3 @@ export const Icon = ({ mediaType }: { mediaType: MediaType }) => { return ; } }; - -const MediaIcon = ({ - mediaType, - hasKicker, -}: { - mediaType: MediaType; - hasKicker: boolean; -}) => { - return ( - - - - ); -}; - -export const MediaMeta = ({ mediaType, hasKicker }: Props) => { - return ( -
- -
- ); -};