13 lines
668 B
JavaScript
13 lines
668 B
JavaScript
import * as React from 'react';
|
|
import { renderAriaLiveAnnouncer_unstable } from './renderAriaLiveAnnouncer';
|
|
import { useAriaLiveAnnouncer_unstable } from './useAriaLiveAnnouncer';
|
|
import { useAriaLiveAnnouncerContextValues_unstable } from './useAriaLiveAnnouncerContextValues';
|
|
/**
|
|
* A sample implementation of a component that manages aria live announcements.
|
|
*/ export const AriaLiveAnnouncer = (props)=>{
|
|
const state = useAriaLiveAnnouncer_unstable(props);
|
|
const contextValues = useAriaLiveAnnouncerContextValues_unstable(state);
|
|
return renderAriaLiveAnnouncer_unstable(state, contextValues);
|
|
};
|
|
AriaLiveAnnouncer.displayName = 'AriaLiveAnnouncer';
|