Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

790 B
Raw Blame
import { useState } from 'react';
import { Image as ImageIcon } from 'lucide-react';
import { scenePosterSrc } from '../../lib/musicVideoPreview.js';

/**
 * A scene's picture on the board: its frame, else its clip's poster, else (or
 * when the poster is missing) a placeholder icon. `className` sizes both.
 */
export default function ScenePoster({ scene, className = '', iconSize = 22 }) {
  const src = scenePosterSrc(scene);
  const [failed, setFailed] = useState(null);
  if (src && failed !== src) return <img src={src} alt="" loading="lazy" onError={() => setFailed(src)} className={`object-cover ${className}`} />;
  return <span className={`flex items-center justify-center bg-port-bg text-port-text-muted ${className}`}><ImageIcon size={iconSize} aria-hidden="true" /></span>;
}