import { Platform, Pressable, View, type StyleProp, type ViewStyle } from "react-native"; import { cn } from "../lib/cn"; import type { DraftComposerFileAttachment } from "../lib/composerImages"; import { SymbolView } from "./AppSymbol"; import { AppText } from "./AppText"; import { VideoAttachmentMenu } from "./VideoAttachmentMenu"; import { VideoThumbnailImage } from "./VideoThumbnailImage"; export function VideoAttachmentTile(props: { readonly name: string; readonly sourceIdentifier: string; readonly thumbnailSource: string | DraftComposerFileAttachment | null; readonly compact?: boolean; readonly onPress: (sourceIdentifier: string) => void; readonly onShare?: () => void; readonly disabled?: boolean; readonly className?: string; readonly style?: StyleProp; }) { return ( props.onPress(props.sourceIdentifier)} onShare={props.onShare} disabled={props.disabled} > props.onPress(props.sourceIdentifier)} className={cn("items-center justify-center overflow-hidden bg-black/80", props.className)} style={props.style} > {!props.compact ? ( {props.name} ) : null} ); }