mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Group calls: mute in the lobby if joining a large call
This commit is contained in:
27
ts/components/CallingToast.tsx
Normal file
27
ts/components/CallingToast.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { FunctionComponent } from 'react';
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
type PropsType = {
|
||||
isVisible: boolean;
|
||||
onClick: () => unknown;
|
||||
};
|
||||
|
||||
export const DEFAULT_LIFETIME = 5000;
|
||||
|
||||
export const CallingToast: FunctionComponent<PropsType> = ({
|
||||
isVisible,
|
||||
onClick,
|
||||
children,
|
||||
}) => (
|
||||
<button
|
||||
className={classNames('CallingToast', !isVisible && 'CallingToast--hidden')}
|
||||
type="button"
|
||||
onClick={onClick}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
Reference in New Issue
Block a user