0 ? images : GALLERY
const [active, setActive] = useState(0)
- const n = GALLERY.length
+ const n = photos.length
useEffect(() => {
const t = setInterval(() => setActive((p) => (p + 1) % n), 3500)
@@ -71,7 +74,7 @@ export function DyvoLisGallery({
className="relative mx-auto h-[260px] max-w-[1204px] lg:h-[400px]"
style={{ perspective: '1100px' }}
>
- {GALLERY.map((src, i) => {
+ {photos.map((src, i) => {
const d = getOffset(i)
const absD = Math.abs(d)
const sign = d >= 0 ? 1 : -1
@@ -139,7 +142,7 @@ export function DyvoLisGallery({
- {GALLERY.map((_, i) => (
+ {photos.map((_, i) => (