import { useAddonEnabled } from '../hooks/useAddons'; import { appViewHref } from '../lib/appUrl'; import { isFeatureEnabled, resolveGatedWorkspaceMode } from '../lib/licensing'; import { EmbeddableShell } from '../components/shared/EmbeddableShell'; import { GatedFeatureWorkspace } from '../components/GatedFeatureWorkspace'; import { AddonSettingsPage } from './AddonSettingsPage'; import type { SikshyaReactConfig } from '../types'; import { __ } from '../lib/i18n'; export function LiveClassesWorkspacePage(props: { config: SikshyaReactConfig; title: string; embedded?: boolean; }) { const { config, title, embedded } = props; const featureOk = isFeatureEnabled(config, 'live_classes'); const addon = useAddonEnabled('live_classes'); const mode = resolveGatedWorkspaceMode(featureOk, addon.enabled, addon.loading); const inner = ( addon.enable()} > {mode === 'full' ? (

{__('How teams use this', 'sikshya')}

  • Create the meeting in Zoom / Meet / Teams, then paste the join URL on each live lesson.
  • Set a start time so Sikshya can surface “Upcoming live sessions” on the course page and learner calendar.
  • Use the optional session title when the calendar row should read differently from the lesson name.
  • Turn off course promos (but keep lesson joins) from the course builder when marketing surfaces should stay minimal.
) : null}
); if (embedded) { return ( {inner} ); } return inner; }