import {StyleProp, ViewStyle} from 'react-native';
import {ImageStyle} from 'expo-image';
import {Attachment} from '@interfaces/attachments';

export enum VideoStatus {
  Loading = 'LOADING',
  Playing = 'PLAYING',
  Paused = 'PAUSED',
  Finished = 'FINISHED',
}

export interface VideoProps {
  doNotRepeat?: boolean;
  enableRotation?: boolean;
  handleDeleteVideo?: (video: Attachment) => void;
  isVisible?: boolean;
  onEnd?: () => void;
  onLongPress?: () => void;
  sending?: boolean;
  smallWidth?: number;
  style?: StyleProp<ViewStyle | ImageStyle>;
  thumbnailUrl?: string;
  video: Attachment;
  width?: number;
  withAutoPlay?: boolean;
  withSmallPlayButton?: boolean;
  videoStyle?: StyleProp<ViewStyle>;
  withCustomControls?: boolean;
  forceMuted?: boolean;
  onMutedToggle?: () => void;
  withAuthHeader?: boolean;
  showTimeLine?: boolean;
}
