// @flow // @jsx glam import glam from 'glam' import React, { Component, type ElementRef } from 'react' import rafScheduler from 'raf-schd' import Icon from './Icon' import ProgressBar from './Progress' import { colors } from '../../../theme' type UrlShape = { type: 'video/mp4' | 'video/ogg', src: string, } export type ViewShape = { poster: string, urls: Array, } type ViewProps = { currentIndex: number, data: ViewShape, interactionIsIdle: boolean, } type ViewState = { paused: boolean, progress: number } function calculateProgress({ currentTime, duration }) { return (100 / duration) * currentTime } const Footer = ({ interactionIsIdle, ...props }) => (
) const Button = props => ( ) : null}
) } }