UNPKG

botframework-webchat-component

Version:
23 lines (16 loc) 522 B
/* eslint-disable react/forbid-dom-props */ import { hooks } from 'botframework-webchat-api'; import React from 'react'; import useUniqueId from '../../hooks/internal/useUniqueId'; const { useLocalizer } = hooks; const VideoAttachment = () => { const labelId = useUniqueId('webchat__id'); const localize = useLocalizer(); const label = localize('ATTACHMENT_VIDEO'); return ( <article aria-labelledby={labelId}> <div id={labelId}>{label}</div> </article> ); }; export default VideoAttachment;