/* eslint react/no-array-index-key: "off" */ import { useStyles } from '@msinternal/botframework-webchat-styles/react'; import { Components } from 'botframework-webchat-component'; import React, { memo } from 'react'; import { boolean, object, optional, parse, pipe, readonly, string, type InferInput } from 'valibot'; import CommonCard from './CommonCard'; import { directLineMediaCardSchema } from './private/directLineSchema'; import styles from './VideoCardContent.module.css'; const { VideoContent } = Components; const videoCardContentPropsSchema = pipe( object({ actionPerformedClassName: optional(string()), content: directLineMediaCardSchema, disabled: optional(boolean()) }), readonly() ); type VideoCardContentProps = InferInput; function VideoCardContent(props: VideoCardContentProps) { const { actionPerformedClassName, content, disabled } = parse(videoCardContentPropsSchema, props); const { autoloop, autostart, image: { url: imageURL } = { url: undefined }, media } = content; const classNames = useStyles(styles); return (
); } export default memo(VideoCardContent); export { videoCardContentPropsSchema, type VideoCardContentProps };