diff --git a/src/button/Button.tsx b/src/button/Button.tsx index f1ba94b..5ade524 100644 --- a/src/button/Button.tsx +++ b/src/button/Button.tsx @@ -30,7 +30,7 @@ import { ReactComponent as SettingsIcon } from "../icons/Settings.svg"; import { ReactComponent as AddUserIcon } from "../icons/AddUser.svg"; import { ReactComponent as ArrowDownIcon } from "../icons/ArrowDown.svg"; import { TooltipTrigger } from "../Tooltip"; -import { ReactComponent as AudioIcon } from "../icons/Audio.svg"; +import { VolumeIcon } from "./VolumeIcon"; export type ButtonVariant = | "default" @@ -239,11 +239,18 @@ export function InviteButton({ ); } -export function AudioButton(props: Omit) { +interface AudioButtonProps extends Omit { + /** + * A number between 0 and 1 + */ + volume: number; +} + +export function AudioButton({ volume, ...rest }: AudioButtonProps) { return ( "Local volume"}> - ); diff --git a/src/video-grid/VideoTile.jsx b/src/video-grid/VideoTile.jsx index 286d301..f6103e1 100644 --- a/src/video-grid/VideoTile.jsx +++ b/src/video-grid/VideoTile.jsx @@ -38,6 +38,7 @@ export const VideoTile = forwardRef( mediaRef, onOptionsPress, showOptions, + localVolume, ...rest }, ref @@ -86,7 +87,7 @@ export const VideoTile = forwardRef( styles.audioButton )} > - + )}