/** * Detail view, displaying text plus media */ import React from "react"; import Gallery from "./Gallery.js"; import Clocks from "./Clocks.js"; import Vimeo from "@u-wave/react-vimeo"; import { pad } from "../utils/index.js"; export default function Detail({ node, visible, onClose }) { if (!node) { return
; } const { id, data } = node; const index = id + 1; return (
{pad(index)}
{data.author && (
)}
{index === 33 ? ( ) : data.type === "video" ? ( visible && (
) ) : ( )}
); }