mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-16 10:55:55 -07:00
feat: v0.0.3
This commit is contained in:
parent
7ff317756f
commit
3250a4ec3f
21 changed files with 322 additions and 374 deletions
|
|
@ -7,14 +7,14 @@ type Item = Album | Track | Artist;
|
|||
interface Props<T extends Item> {
|
||||
data: PaginatedResponse<T>
|
||||
separators?: ConstrainBoolean
|
||||
width?: number
|
||||
type: "album" | "track" | "artist";
|
||||
className?: string,
|
||||
}
|
||||
|
||||
export default function TopItemList<T extends Item>({ data, separators, type, width }: Props<T>) {
|
||||
export default function TopItemList<T extends Item>({ data, separators, type, className }: Props<T>) {
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-1" style={{width: width ?? 300}}>
|
||||
<div className={`flex flex-col gap-1 ${className} min-w-[300px]`}>
|
||||
{data.items.map((item, index) => {
|
||||
const key = `${type}-${item.id}`;
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue