From d32ed92902d52934a55cdb9efe110ef11cd920d8 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Sat, 16 Aug 2025 09:52:55 +0700 Subject: (andri) make component card mediacard --- src/lib/brand/components/MediaCard.jsx | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/lib/brand/components/MediaCard.jsx (limited to 'src/lib/brand/components/MediaCard.jsx') diff --git a/src/lib/brand/components/MediaCard.jsx b/src/lib/brand/components/MediaCard.jsx new file mode 100644 index 00000000..a6591abd --- /dev/null +++ b/src/lib/brand/components/MediaCard.jsx @@ -0,0 +1,42 @@ +import NextImage from 'next/image'; +import Link from '@/core/components/elements/Link/Link'; +import useDevice from '@/core/hooks/useDevice'; +import { createSlug } from '@/core/utils/slug'; + +const MediaCard = ({ media }) => { + const { isMobile } = useDevice(); + +// console.log("Media logo:", media); + + return ( + + {media.image ? ( + + ) : ( + + {media.name} + + )} + + ); +}; + +export default MediaCard; -- cgit v1.2.3