import { useEffect, useState } from 'react';
import { getScreenerNodes } from '../../../../api';

export function useScreenerMeta() {
  const [meta, setMeta] = useState(null);
  const [loading, setLoading] = useState(true);
  useEffect(() => {
    getScreenerNodes().then((m) => { setMeta(m); setLoading(false); });
  }, []);
  return { meta, loading };
}
