import {Box, IconButton, Typography} from '@material-ui/core' import PropTypes from 'prop-types' import {useRouter} from 'next/router' import { Tidal, Spotify, Deezer, Soundcloud } from '@icons-pack/react-simple-icons' import {useEffect, useState} from 'react' const kouteyAchteyIcons = { Tidal: , Deezer: , Spotify: , Soundcloud: } function RannIframe({boutik, url, isMobile}) { let src = '' if (boutik === 'Tidal') { const trackArray = url.split('/') const trackId = trackArray[trackArray.length - 1] src = `https://embed.tidal.com/tracks/${trackId}?disableAnalytics=true` } else if (boutik === 'Deezer') { const trackArray = url.split('/') const trackId = trackArray[trackArray.length - 1] src = `https://widget.deezer.com/widget/auto/track/${trackId}?tracklist=false` } else if (boutik === 'Spotify') { const trackArray = url.split('/') const trackId = trackArray[trackArray.length - 1] src = `https://open.spotify.com/embed/track/${trackId}` } else if (boutik === 'Soundcloud') { src = `https://w.soundcloud.com/player/?url=${url}` } return (
{boutik === 'Tidal' && (