mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 01:40:15 +01:00
22 lines
477 B
TypeScript
22 lines
477 B
TypeScript
// client/src/a11y/Announcer.tsx
|
|
import React from 'react';
|
|
|
|
interface AnnouncerProps {
|
|
statusMessage: string;
|
|
logMessage: string;
|
|
}
|
|
|
|
const Announcer: React.FC<AnnouncerProps> = ({ statusMessage, logMessage }) => {
|
|
return (
|
|
<div className="sr-only">
|
|
<div aria-live="polite" aria-atomic="true">
|
|
{statusMessage}
|
|
</div>
|
|
<div aria-live="polite" aria-atomic="true">
|
|
{logMessage}
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Announcer;
|