feat(ssulbox): 상세·공유 화면과 좋아요·댓글·업로드 연동
This commit is contained in:
1 parent
7b1e691715
commit
741539a023
12 files changed
+836
-293
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import React from 'react';
|
||||
import SsulDetailContent from './SsulDetailContent';
|
||||
|
||||
interface SsulDetailPageProps {
|
||||
contentId: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 썰박스 공유 링크 페이지 (`/ssul/{id}`) — castad `VideoDetailPage` 와 동일한 패턴.
|
||||
* 비로그인도 볼 수 있다(백엔드 `GET /ssul/{id}` 가 인증 선택).
|
||||
*/
|
||||
const SsulDetailPage: React.FC<SsulDetailPageProps> = ({ contentId }) => {
|
||||
const handleBack = () => {
|
||||
localStorage.setItem('castad_active_item', 'ADO2 콘텐츠');
|
||||
window.location.href = '/';
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="video-detail-page">
|
||||
<SsulDetailContent contentId={contentId} isModal={false} onClose={handleBack} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SsulDetailPage;
|
||||
Reference in new issue
Block a user