UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

27 lines 767 B
/** * Video utilities for Modal component * * Utilities to handle YouTube video embedding and URL detection */ /** * Check if a given URL is a YouTube URL * * @param url - The URL to check * @returns true if the URL is from YouTube, false otherwise */ export declare const isYouTubeUrl: (url: string) => boolean; /** * Extract YouTube video ID from URL * * @param url - The YouTube URL * @returns The video ID if found, null otherwise */ export declare const getYouTubeVideoId: (url: string) => string | null; /** * Generate YouTube embed URL for iframe * * @param videoId - The YouTube video ID * @returns The embed URL for the video */ export declare const getYouTubeEmbedUrl: (videoId: string) => string; //# sourceMappingURL=videoUtils.d.ts.map