Show no preview text when not found

This commit is contained in:
Nicolas Mowen 2024-03-10 15:48:32 -06:00
parent 947089559b
commit 118bf25183

View File

@ -140,6 +140,11 @@ export default function PreviewVideoPlayer({
<source src={currentPreview.src} type={currentPreview.type} /> <source src={currentPreview.src} type={currentPreview.type} />
)} )}
</video> </video>
{cameraPreviews && !currentPreview && (
<div className="absolute inset-x-0 top-1/2 -y-translate-1/2 bg-black text-white rounded-2xl align-center text-center">
No Preview Found
</div>
)}
</div> </div>
); );
} }