diff --git a/src/pages/share/[videoId].tsx b/src/pages/share/[videoId].tsx index 240d515..03712a2 100644 --- a/src/pages/share/[videoId].tsx +++ b/src/pages/share/[videoId].tsx @@ -8,9 +8,11 @@ import Link from "next/link"; import Image from "next/image"; import { getTime } from "~/utils/getTime"; import { ShareModal } from "~/components/ShareModal"; +import { useSession } from "next-auth/react"; const VideoList: NextPage = () => { const router = useRouter(); + const { data: session } = useSession(); const { videoId } = router.query as { videoId: string }; const { data: video, isLoading } = api.video.get.useQuery( @@ -50,7 +52,9 @@ const VideoList: NextPage = () => { Personal Library - {video ? : null} + {video && video.userId === session?.user.id ? ( + + ) : null}