import { Skeleton } from "@mui/material"; import React from "react"; import "@/components/albumMusicTrack/albumMusicTrack.scss"; type MusicPageSkeletonProps = { /** Artist pages open on a round portrait and a discography grid. */ artist?: boolean; }; const ALBUM_SKELETONS = ["one", "two", "three", "four", "five"]; const TRACK_SKELETONS = [ "one", "two", "three", "four", "five", "six", "seven", "eight", ]; const AlbumCardSkeleton = () => (
); const MusicPageSkeleton = ({ artist = false }: MusicPageSkeletonProps) => (
{artist ? ( <>
{ALBUM_SKELETONS.map((id) => ( ))}
) : (
{TRACK_SKELETONS.map((id) => (
))}
)}
); export default MusicPageSkeleton;