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

887 B
Raw Blame
/**
 * MediaCollectionSyncView — route page for /media/collections/:id/sync.
 *
 * Deep-linkable: renders the SyncDetailDrawer overlaid on top of the
 * MediaGen layout. `onClose` navigates back to the collections list so the
 * user lands on /media/collections after dismissing the drawer.
 */

import { useParams, useNavigate } from 'react-router';
import SyncDetailDrawer from '../components/sync/SyncDetailDrawer';

export default function MediaCollectionSyncView() {
  const { id } = useParams();
  const navigate = useNavigate();

  const handleClose = () => {
    navigate('/media/collections');
  };

  return (
    <SyncDetailDrawer
      kind="mediaCollection"
      // Default to '' (matching SyncView) so a route mounted without the param
      // never flows `undefined` into the per-kind fetcher calls.
      recordId={id ?? ''}
      onClose={handleClose}
    />
  );
}