import React from 'react'; import Album from 'Album/Album'; import TagListConnector from 'Components/TagListConnector'; import MetadataProfile from 'typings/MetadataProfile'; import QualityProfile from 'typings/QualityProfile'; import formatDateTime from 'Utilities/Date/formatDateTime'; import getRelativeDate from 'Utilities/Date/getRelativeDate'; import formatBytes from 'Utilities/Number/formatBytes'; import translate from 'Utilities/String/translate'; import styles from './ArtistIndexPosterInfo.css'; interface ArtistIndexPosterInfoProps { artistType?: string; showQualityProfile: boolean; qualityProfile?: QualityProfile; metadataProfile?: MetadataProfile; showNextAlbum: boolean; nextAlbum?: Album; lastAlbum?: Album; added?: string; albumCount: number; path: string; sizeOnDisk?: number; tags?: number[]; sortKey: string; showRelativeDates: boolean; shortDateFormat: string; longDateFormat: string; timeFormat: string; } function ArtistIndexPosterInfo(props: ArtistIndexPosterInfoProps) { const { artistType, qualityProfile, metadataProfile, showQualityProfile, showNextAlbum, nextAlbum, lastAlbum, added, albumCount, path, sizeOnDisk, tags, sortKey, showRelativeDates, shortDateFormat, longDateFormat, timeFormat, } = props; if (sortKey === 'artistType' && artistType) { return (