import { NoteAPINote } from "src/wwwAPI";
import NoteItem from "src/note/NoteItem";

export default function NoteItems({ levelNote }: { levelNote: NoteAPINote[] }) {
  return (
    <>
      {levelNote.map(({ noteID, artist, title, genre, levelText, level }) => (
        <NoteItem
          key={noteID}
          noteID={noteID}
          artist={artist}
          title={title}
          genre={genre}
          levelText={levelText}
          level={level}
        />
      ))}
    </>
  );
}
