'use client'; import React, { CSSProperties } from 'react'; import { clampSpan, cx } from '@newspaperui/utils'; import { useSection } from '../layout/Section'; import { Caption } from '../text/Caption'; export interface VideoProps { src: string; poster?: string; caption?: string; credit?: string; span?: number; controls?: boolean; className?: string; style?: CSSProperties; } export const Video: React.FC = ({ src, poster, caption, credit, span, controls = true, className, style, }) => { const section = useSection(); const cols = span ? clampSpan(span, section.columns) : undefined; return (
); };