import React from 'react' import { Link } from 'gatsby' import * as styles from './video.module.css' const links = { drag: { label: 'drag', link: 'gestures' }, wheel: { label: 'wheel', link: 'gestures' }, pinch: { label: 'pinch', link: 'gestures' }, move: { label: 'move', link: 'gestures' }, initial: { label: 'initial', link: 'options/#initial' }, rubberband: { label: 'rubberband', link: 'options/#rubberband' }, touchaction: { label: 'touch-action', link: 'extras/#touch-action' } } const Video = ({ video, id, badges }) => { return (
{badges && (
{badges.map((b, i) => ( {links[b].label} ))}
)}
) } export default Video