import React from 'react'
import { Loading, useGetOne } from 'react-admin'
import { Card, CardContent, CardMedia, Typography } from '@material-ui/core'
import { subsonicUrl } from '../subsonic'
const AlbumDetails = ({ id, classes }) => {
const { data, loading, error } = useGetOne('album', id)
if (loading) {
return
ERROR: {error}
} const genreYear = (data) => { let genreDateLine = [] if (data.genre) { genreDateLine.push(data.genre) } if (data.year) { genreDateLine.push(data.year) } return genreDateLine.join(' - ') } return (