import { motion } from 'framer-motion'; import { useQuery } from '@tanstack/react-query'; import { useNavigate } from 'react-router-dom'; import { getAlbums } from '@/api'; /** * Mobile 앨범 목록 페이지 */ function MobileAlbum() { const navigate = useNavigate(); const { data: albums = [], isLoading: loading } = useQuery({ queryKey: ['albums'], queryFn: getAlbums, }); if (loading) { return (
{album.title}
{album.album_type_short} · {album.release_date?.slice(0, 4)}