"use client"
import { ArrowLeft2, Setting2 } from 'iconsax-react';
import Image from 'next/image';
import React, { useState, useEffect, useRef, useCallback } from 'react';
import Link from 'next/link';
import HoverCards from '@/components/cards/HoverCards';
import { Button } from '@/components/ui/button';
interface Page {
id: number;
content: React.ReactNode;
videoSrc: string;
}
export default function Reader() {
const [currentPageIndex, setCurrentPageIndex] = useState(0);
const [transitioning, setTransitioning] = useState(false);
const videoRefs = useRef<(HTMLVideoElement | null)[]>([]);
// Content structured to match your design
const pages: Page[] = [
{
id: 1,
videoSrc: "/videos/background1.mp4",
content: (
<>
BRUTAL
Through the rain, flickering neon lights spell out of{" "}
{" "}
and illuminate an entrance to nightclub.
A stunning light show cascades across a dance floor crowded by
partiers and adorned by dozens of video monitors.
WADE HARPER, an anxious businessman dressed in a black suit,
follows two burly bouncers up a flight of stairs toward the{" "}
{" "}
at the back of the warehouse.