import React, { useCallback } from "react"; import { ButtonTooltip, HeaderButton } from "./RoomButton"; import { Popover, PopoverMenu, PopoverMenuItem } from "./PopoverMenu"; import { ReactComponent as SpotlightIcon } from "./icons/Spotlight.svg"; import { ReactComponent as FreedomIcon } from "./icons/Freedom.svg"; import { ReactComponent as CheckIcon } from "./icons/Check.svg"; import styles from "./GridLayoutMenu.module.css"; export function GridLayoutMenu({ layout, setLayout }) { const onAction = useCallback((value) => setLayout(value)); return ( Layout Type {layout === "spotlight" ? : } {(props) => ( Freedom {layout === "freedom" && } Spotlight {layout === "spotlight" && ( )} )} ); }