feat: add reusable gallery carousel and ranking feed infrastructure

This commit is contained in:
2026-02-28 07:56:25 +01:00
parent 67ef79766c
commit 6536d4ae78
36 changed files with 3177 additions and 373 deletions

View File

@@ -7,8 +7,8 @@ function formatCount(value) {
return `${number}`
}
export default function ArtworkStats({ artwork }) {
const stats = artwork?.stats || {}
export default function ArtworkStats({ artwork, stats: statsProp }) {
const stats = statsProp || artwork?.stats || {}
const width = artwork?.dimensions?.width || 0
const height = artwork?.dimensions?.height || 0