refactor(video): rename VideoProps to VideoViewerProps for clarity

This commit is contained in:
icarus 2025-10-13 13:44:56 +08:00
parent 63459e3ec4
commit 1e1bfafb88

View File

@ -14,11 +14,11 @@ import { CheckCircleIcon, CircleXIcon } from 'lucide-react'
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
export interface VideoProps {
export interface VideoViewerProps {
video?: Video
}
export const VideoViewer = ({ video }: VideoProps) => {
export const VideoViewer = ({ video }: VideoViewerProps) => {
const { t } = useTranslation()
const [loadSuccess, setLoadSuccess] = useState<boolean | undefined>(undefined)
const { isOpen, onOpen, onClose } = useDisclosure()