UNPKG

@ahanapediatrics/react-volume-meter

Version:
20 lines (19 loc) 589 B
import { Optional } from "@ahanapediatrics/ahana-fp"; import { ReactNode } from "react"; export declare enum VmShape { VM_CIRCLE = 0, VM_STEPPED = 1, VM_FLAT = 2 } declare type Props = { audioContext: AudioContext; stream: Optional<MediaStream>; width: number; height: number; enabled?: boolean; shape: VmShape; blocks?: number; activateButton?: (onClick: () => Promise<void>) => ReactNode; }; export declare const VolumeMeter: ({ enabled, width, height, shape, blocks, audioContext, stream, activateButton, }: Props) => JSX.Element; export {};