{media?.path.indexOf('mp4') > -1 && (
<>
{/* Alt Text Input */}
{!isEditingThumbnail ? (
{/* Show existing thumbnail if it exists */}
{(newThumbnail || thumbnail) && (
Current Thumbnail:
)}
{/* Action Buttons */}
{(thumbnail || newThumbnail) && (
)}
) : (
{/* Back button */}
{/* Thumbnail Editor */}
{
// Convert blob to base64 or handle as needed
const reader = new FileReader();
reader.onload = () => {
// You can handle the result here - for now just call onSelect with the blob URL
const url = URL.createObjectURL(blob);
setNewThumbnail(url);
setThumbnailTimestamp(timestampMs);
setIsEditingThumbnail(false);
};
reader.readAsDataURL(blob);
}}
media={media}
altText={altText}
onAltTextChange={setAltText}
/>