mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-19 20:26:33 -07:00
chore: initial public commit
This commit is contained in:
commit
fc9054b78c
250 changed files with 32809 additions and 0 deletions
26
client/app/components/ArtistLinks.tsx
Normal file
26
client/app/components/ArtistLinks.tsx
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import React from 'react';
|
||||
import { Link } from 'react-router';
|
||||
|
||||
type Artist = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
|
||||
type ArtistLinksProps = {
|
||||
artists: Artist[];
|
||||
};
|
||||
|
||||
const ArtistLinks: React.FC<ArtistLinksProps> = ({ artists }) => {
|
||||
return (
|
||||
<>
|
||||
{artists.map((artist, index) => (
|
||||
<span key={artist.id} className='color-fg-secondary'>
|
||||
<Link className="hover:text-(--color-fg-tertiary)" to={`/artist/${artist.id}`}>{artist.name}</Link>
|
||||
{index < artists.length - 1 ? ', ' : ''}
|
||||
</span>
|
||||
))}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default ArtistLinks;
|
||||
Loading…
Add table
Add a link
Reference in a new issue