/* * @Author: ZhaoYing * @Date: 2026-03-24 12:21:56 * @Last Modified by: ZhaoYing * @Last Modified time: 2026-03-24 12:21:56 */ import { type FC, useRef, useState } from 'react' import { CloseOutlined } from '@ant-design/icons' interface VideoPlayerProps { src: string } const VideoPlayer: FC = ({ src }) => { const [open, setOpen] = useState(false) const videoRef = useRef(null) const handleOpen = () => setOpen(true) const handleClose = () => { videoRef.current?.pause() setOpen(false) } return ( <> {/* Thumbnail with play overlay */}
{/* Fullscreen modal */} {open && (
)} ) } export default VideoPlayer