import * as React from 'react'; import { useDisconnectButton } from '../../hooks'; /** @public */ export interface DisconnectButtonProps extends React.ButtonHTMLAttributes { stopTracks?: boolean; } /** * The `DisconnectButton` is a basic html button with the added ability to disconnect from a LiveKit room. * Normally this is the big red button that allows end users to leave the video or audio call. * * @example * ```tsx * * Leave room * * ``` * @public */ export const DisconnectButton: ( props: DisconnectButtonProps & React.RefAttributes, ) => React.ReactNode = /* @__PURE__ */ React.forwardRef( function DisconnectButton(props: DisconnectButtonProps, ref) { const { buttonProps } = useDisconnectButton(props); return ( ); }, );