/** * A concept video, as a browsable card. * * Concepts are market education — someone scans the shelf and picks what they * need — so this is a poster-led grid tile. The platform track is a course you * work through in order and is rendered as a list instead; see * `LearnWalkthroughList`. */ import { formatLearnDuration } from '@pig/core'; import { Badge, Card } from '@/components/ui'; import { ArchiveControl } from './ArchiveControl'; import { learnPlayback } from './model'; import { LearnPoster } from './LearnPoster'; import type { LearnResourceView } from './model'; export function LearnVideoCard({ resource, managing, onPlay, }: { resource: LearnResourceView; managing: boolean; onPlay: (resource: LearnResourceView) => void; }) { const playback = learnPlayback(resource); return ( {managing ? (
{resource.visibility === 'code' ? 'Shared by code' : 'Members only'}
) : null}
); }