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

521 B
Raw Blame
import { useEffect } from 'react';
import useMediaJobProgress from '../../../hooks/useMediaJobProgress';

export default function VolumeCoverSlotWatcher({ slot, coverKey, slotKey, onFilename }) {
  const jobId = slot?.filename ? null : slot?.jobId || null;
  const { filename } = useMediaJobProgress(jobId, { kind: 'image' });

  useEffect(() => {
    if (!filename || slot?.filename) return;
    onFilename(coverKey, slotKey, filename);
  }, [coverKey, filename, onFilename, slot?.filename, slotKey]);

  return null;
}