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