mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
refactor: version 2.0 (React)
This commit is contained in:
parent
7dad7d810a
commit
950f72d4e8
356 changed files with 7901 additions and 29547 deletions
22
packages/renderer/src/components/ArtistsInline.tsx
Normal file
22
packages/renderer/src/components/ArtistsInline.tsx
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
const ArtistInline = ({
|
||||
artists,
|
||||
className,
|
||||
}: {
|
||||
artists: Artist[]
|
||||
className?: string
|
||||
}) => {
|
||||
if (!artists) return <div></div>
|
||||
|
||||
return (
|
||||
<div className={classNames('flex truncate', className)}>
|
||||
{artists.map((artist, index) => (
|
||||
<span key={artist.id}>
|
||||
<span className="hover:underline">{artist.name}</span>
|
||||
{index < artists.length - 1 ? ', ' : ''}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default ArtistInline
|
||||
Loading…
Add table
Add a link
Reference in a new issue