UNPKG

analytica-frontend-lib

Version:

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

44 lines 1.55 kB
/** * Download content interface for lesson materials */ export interface DownloadContent { /** Document URL (PDF) */ urlDoc?: string; /** Initial frame image URL */ urlInitialFrame?: string; /** Final frame image URL */ urlFinalFrame?: string; /** Podcast audio URL */ urlPodcast?: string; /** Video URL */ urlVideo?: string; } /** * Props for DownloadButton component */ export interface DownloadButtonProps { /** Content URLs to download */ content: DownloadContent; /** Additional CSS classes */ className?: string; /** Callback fired when download starts */ onDownloadStart?: (contentType: string) => void; /** Callback fired when download completes */ onDownloadComplete?: (contentType: string) => void; /** Callback fired when download fails */ onDownloadError?: (contentType: string, error: Error) => void; /** Lesson title for download file naming */ lessonTitle?: string; /** Whether the button is disabled */ disabled?: boolean; } /** * DownloadButton component for downloading lesson content * Provides a single button that downloads all available content for a lesson * * @param props - DownloadButton component props * @returns Download button element */ declare const DownloadButton: ({ content, className, onDownloadStart, onDownloadComplete, onDownloadError, lessonTitle, disabled, }: DownloadButtonProps) => import("react/jsx-runtime").JSX.Element | null; export default DownloadButton; //# sourceMappingURL=DownloadButton.d.ts.map