diff --git a/app/app/components/song-card.tsx b/app/app/components/song-card.tsx new file mode 100644 index 0000000..95bbbcb --- /dev/null +++ b/app/app/components/song-card.tsx @@ -0,0 +1,31 @@ +import { Link } from "react-router"; +import { Badge } from "~/components/ui/badge"; +import { Card, CardContent } from "~/components/ui/card"; +import type { SongSummary } from "~/lib/types"; + +interface Props { + song: SongSummary; +} + +export function SongCard({ song }: Props) { + return ( + + + + + {song.preview_chords.map((chord) => ( + + {chord} + + ))} + + {song.meta.title} + {song.meta.artist} + {song.meta.original_key && ( + Key: {song.meta.original_key} + )} + + + + ); +}
{song.meta.title}
{song.meta.artist}
Key: {song.meta.original_key}