import { Fragment } from 'react'; import type { ArtistCredit as AC } from '../../core/Atomic'; import { HStack, Tag } from "@chakra-ui/react"; import { MusicServiceIndicators } from './musicServices/MusicServiceIndicators'; import type { MusicServicesAny } from './musicServices/musicServiceTypes'; export const ArtistCredit = (props: { data: AC, showLinks?: boolean, showMbid?: boolean }) => { const { data, showLinks = true, showMbid } = props; if (!showLinks) { return data.name; } const musicServices: MusicServicesAny[] = []; if(data.mbid) { musicServices.push({name: 'musicbrainz', idHint: 'artist', id: data.mbid}); } return {data.name} } export const ArtistCreditTags = (props: { data: AC[], showLinks?: boolean, showMbid?: boolean }) => ( {props.data.map((x, index) => ( ))} )