import { useNavigate } from "react-router-dom"; import { Music, Disc3, Mic2 } from "lucide-react"; import type { ArtistContributionDTO } from "../../types"; interface ArtistViewProps { contributions: ArtistContributionDTO[]; } const ArtistView = ({ contributions }: ArtistViewProps) => { const navigate = useNavigate(); const albums = contributions.filter((c) => c.entityType === "ALBUM"); const songs = contributions.filter((c) => c.entityType === "SONG"); const getRoleColor = (role: string) => { const colors: { [key: string]: string } = { COMPOSER: "bg-purple-500", PERFORMER: "bg-blue-500", PRODUCER: "bg-green-500", MAIN_VOCAL: "bg-pink-500", }; return colors[role] || "bg-gray-500"; }; return (
No contributions yet
Start creating music to see it here