import { useMemo, useState } from "react"; import { Modal, Button, Card } from "antd"; import { ChevronLeft, ChevronRight } from "lucide-react"; import type { HarvestInstance } from "../types"; import { generateMockHistory } from "../hooks/useMockHarvestContent"; import styles from "./MagazineStackViewer.module.less"; interface MagazineStackViewerProps { open: boolean; harvest: HarvestInstance; onClose: () => void; } export function MagazineStackViewer({ open, harvest, onClose, }: MagazineStackViewerProps) { const magazines = useMemo( () => generateMockHistory(harvest.name), [harvest.name], ); const [currentIndex, setCurrentIndex] = useState(0); const current = magazines[currentIndex]; return (
{magazines.map((mag, index) => ( ))}
); }