xonecas.io
4828
Sr

stream-together / files

stream-together / components / end-stream-button.tsx

489 bytes
1import { CiStreamOff as StreamOffIcon } from "react-icons/ci";
2
3import PrimaryButton from "./primary-button";
4
5export default function EndStreamButton({
6  handleEndCall,
7}: Readonly<{ handleEndCall: () => void }>) {
8  return (
9    <button onClick={handleEndCall} title="End stream">
10      <PrimaryButton>
11        <div className="flex flex-row items-center gap-2 p-2">
12          <StreamOffIcon size="1.5em" />
13          <p>End</p>
14        </div>
15      </PrimaryButton>
16    </button>
17  );
18}