/* eslint react/no-array-index-key: "off" */ import { validateProps } from '@msinternal/botframework-webchat-react-valibot'; import { useStyles } from '@msinternal/botframework-webchat-styles/react'; import { Components } from 'botframework-webchat-component'; import React, { memo } from 'react'; import { boolean, object, optional, pipe, readonly, string, type InferInput } from 'valibot'; import CommonCard from './CommonCard'; import { directLineMediaCardSchema } from './private/directLineSchema'; import styles from './AnimationCardContent.module.css'; const { ImageContent, VideoContent } = Components; const animationCardContentPropsSchema = pipe( object({ actionPerformedClassName: optional(string()), content: directLineMediaCardSchema, disabled: optional(boolean()) }), readonly() ); type AnimationCardContentProps = InferInput; function AnimationCardContent(props: AnimationCardContentProps) { const { actionPerformedClassName, content, disabled } = validateProps(animationCardContentPropsSchema, props); const { media = [] } = content; const classNames = useStyles(styles); return (
); } export default memo(AnimationCardContent); export { animationCardContentPropsSchema, type AnimationCardContentProps };