import { getSingleArtwork } from "@/actions/artworks/getArtworks"; import { getCategoriesWithTags } from "@/actions/categories/getCategories"; import { getTags } from "@/actions/tags/getTags"; import ArtworkColors from "@/components/artworks/single/ArtworkColors"; import ArtworkDetails from "@/components/artworks/single/ArtworkDetails"; import ArtworkTimelapse from "@/components/artworks/single/ArtworkTimelapse"; import ArtworkVariants from "@/components/artworks/single/ArtworkVariants"; import DeleteArtworkButton from "@/components/artworks/single/DeleteArtworkButton"; import EditArtworkForm from "@/components/artworks/single/EditArtworkForm"; export default async function ArtworkSinglePage({ params }: { params: Promise<{ id: string }> }) { const { id } = await params; const item = await getSingleArtwork(id); const categories = await getCategoriesWithTags(); const tags = await getTags(); if (!item) return