feat: add console banner (#186)

This commit is contained in:
Wesley Luyten
2025-11-18 12:35:39 -06:00
committed by GitHub
parent 5a449832fd
commit 072b0dece7
4 changed files with 45 additions and 0 deletions
@@ -3,9 +3,14 @@ import type { ReactNode } from 'react';
import { createMediaStore } from '@videojs/core/store';
import { printConsoleBanner } from '@videojs/utils';
import { useMemo } from 'react';
import { version } from '../../package.json';
import { MediaContext } from './context';
printConsoleBanner(version);
export function VideoProvider({ children }: { children: ReactNode }): JSX.Element {
const value = useMemo(() => createMediaStore(), []);