import * as React from 'react'; import { useChatToggle } from '../../hooks'; /** @public */ export interface ChatToggleProps extends React.ButtonHTMLAttributes {} /** * The `ChatToggle` component is a button that toggles the visibility of the `Chat` component. * @remarks * For the component to have any effect it has to live inside a `LayoutContext` context. * * @example * ```tsx * * * * ``` * @public */ export const ChatToggle: ( props: ChatToggleProps & React.RefAttributes, ) => React.ReactNode = /* @__PURE__ */ React.forwardRef( function ChatToggle(props: ChatToggleProps, ref) { const { mergedProps } = useChatToggle({ props }); return ( ); }, );