import { Howl } from "howler"; import { useLocation, useNavigate, useParams } from "react-router-dom"; import playIcon from "@/assets/icons/play-outline.svg"; import openingSfx from "@/assets/audio/VO_JA_Furina_Opening_Treasure_Chest_02.ogg"; import ViewSheet from "./viewSheet"; import PageMetadata from "@/components/containers/PageMetadata"; import ArtworkListing from "./ArtworkListing"; import { useCallback } from "react"; const openingChestSfx = new Howl({ src: openingSfx, preload: true, }); const ArtworksPage = () => { const { id: viewArtId } = useParams(); const navigate = useNavigate(); const location = useLocation(); const goBack = useCallback(() => { if (location.key !== "default") { navigate(-1); } else { navigate("/treasures"); } }, [location, navigate]); return (

Treasures

Take it. Ahem... I allow you!

); }; export default ArtworksPage;