Skip to content

armgit / Piik

Public Imported from GitHub
0

Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。

907 B
Raw Blame
import type { ReactNode } from "react";
import { useCopy } from "../../ui/copy";

// Shared by the room and its previews; actions and their state belong to the caller.
export function HostShareControls({ actions, settings, remote, pause, ending }: {
  actions?: ReactNode; settings: ReactNode; remote?: ReactNode; pause?: ReactNode; ending?: ReactNode;
}) {
  const { t } = useCopy();
  return <div className="lr-host-controls">
    <div className="lr-host-share-controls lr-media-toolbar lr-media-controls" role="group" aria-label={t("host.shareControls")}>
      {(actions || pause || ending) && <div className="lr-host-action-dock">
        {actions && <div className="lr-host-control-group">{actions}</div>}
        {(pause || ending) && <div className="lr-host-control-group">{pause}{ending}</div>}
      </div>}
      <div className="lr-host-tool-dock">{settings}{remote}</div>
    </div>
  </div>;
}