import React from 'react';
import VideoDetailContent from './VideoDetailContent';

interface VideoDetailPageProps {
  videoId: string;
}

const VideoDetailPage: React.FC<VideoDetailPageProps> = ({ videoId }) => {
  const handleBack = () => {
    localStorage.setItem('castad_active_item', 'ADO2 콘텐츠');
    window.location.href = '/';
  };

  return (
    <div className="video-detail-page">
      <VideoDetailContent videoId={videoId} isModal={false} onClose={handleBack} />
    </div>
  );
};

export default VideoDetailPage;
