import classNames from "classnames";
import React, { useCallback, useRef } from "react";
import { Link } from "react-router-dom";
import styles from "./Header.module.css";
import { ReactComponent as Logo } from "./icons/Logo.svg";
import { ReactComponent as VideoIcon } from "./icons/Video.svg";
import { ReactComponent as ArrowLeftIcon } from "./icons/ArrowLeft.svg";
import { useButton } from "@react-aria/button";
import { Subtitle } from "./typography/Typography";
import { Avatar } from "./Avatar";
import { IncompatibleVersionModal } from "./IncompatibleVersionModal";
import { useModalTriggerState } from "./Modal";
import { Button } from "./button";
export function Header({ children, className, ...rest }) {
return (
);
}
export function LeftNav({ children, className, hideMobile, ...rest }) {
return (
{children}
);
}
export function RightNav({ children, className, hideMobile, ...rest }) {
return (
{children}
);
}
export function HeaderLogo({ className }) {
return (
);
}
export function RoomHeaderInfo({ roomName, avatarUrl }) {
return (
<>
{roomName}
>
);
}
export function RoomSetupHeaderInfo({ roomName, avatarUrl, ...rest }) {
const ref = useRef();
const { buttonProps } = useButton(rest, ref);
return (
);
}
export function VersionMismatchWarning({ users, room }) {
const { modalState, modalProps } = useModalTriggerState();
const onDetailsClick = useCallback(() => {
modalState.open();
}, [modalState]);
if (users.size === 0) return null;
return (
Incomaptible versions!
{modalState.isOpen && (
)}
);
}