import React, { useState } from "react"; import { VideoGrid, useVideoGridLayout } from "./VideoGrid"; import { VideoTile } from "./VideoTile"; import { useMemo } from "react"; import { Button } from "../button"; export default { title: "VideoGrid", parameters: { layout: "fullscreen", }, }; export const ParticipantsTest = () => { const [layout, setLayout] = useVideoGridLayout(false); const [participantCount, setParticipantCount] = useState(1); const items = useMemo( () => new Array(participantCount).fill(undefined).map((_, i) => ({ id: (i + 1).toString(), focused: false, presenter: false, })), [participantCount] ); return ( <>