import {ModalState} from "./Analyser"; import {Show} from "solid-js"; export interface AnalyseMenuProps { sessionName: string; onShare: Function; canShare: boolean; isShared: boolean; clients: number; inShared: boolean; open: boolean; openModal: (ModalState) => void; speed: number; } export function AnalyseMenu(props: AnalyseMenuProps) { let details; const loc = () => window.location.toString().replace(/\#.*/, '') + '#' + props.sessionName; const openModal = (modal: ModalState) => { details.open = false; props.openModal(modal); } return (
) }