/** * WordPress dependencies */ const { __ } = wp.i18n; const { SelectControl, Notice } = wp.components; const { useEffect, useState } = wp.element; import LoadSelect from "../../components/LoadSelect"; export default ({ options, updateEmailState }) => { const [fetching, setFetching] = useState(false); const [groups, setGroups] = useState([ { value: null, label: __("Choose a webhook", "presto-player") }, ]); const [error, setError] = useState(""); const fetchGroups = async () => { setFetching(true); try { const fetched = await wp.apiFetch({ path: "presto-player/v1/webhook", }); let listOptions = groups; (fetched || []).forEach((list) => { listOptions = [ ...listOptions, ...[ { value: list.id, label: list.name, }, ], ]; }); setGroups(listOptions); } catch (e) { if (e?.message) { setError(e.message); } } finally { setFetching(false); } }; useEffect(() => { fetchGroups(); }, []); if (fetching) { return
; } if (error) { return (
{error}
); } return (
updateEmailState({ provider_list })} />
); }; ;;;
Projects
2009 | Bilbao, Spain..
ALBIASA :: 220 MW Solar Thermal :: Bilbao, Spain :: Solar Development :: $850,000,000. Project abandoned to lack of PPA
2011 | Tucson, AZ US..
PICTURE ROCKS :: 20 MW Solar Photovoltaic System (PV) :: SunEdison/Fotowatio :: $83,000,000
2011 | Tucson, AZ US..
PICTURE ROCKS :: 20MW Substation Project
2012 | Kern County U..
ORION :: 18 MW Solar PV :: Chevron/SunEdison :: Kern County, CA :: $60,000,000
2012 | Tonopah, AZ U..
BADGER/TONOPAH :: 15 MW Single Axis Solar PV :: SunEdison :: Tonopah, AZ :: $45,000,000
2013 | Laredo, TX US..
ACACIA :: 10 MW Solar PV Plant :: SunEdison/Chevron :: Laredo, TX :: $35,000,000
2013 | Puerto Rico U..
SALINAS :: 15 MW :: Fixed Solar PV Project :: Puerto Rico, USA :: $50,000,000
2013 | Exiter, CA US..
ImMODO :: 3 Solar PV Plants 4.5MW :: Exiter, CA USA :: $17,000,000
2013 | Ivanhoe, CA U..
ImMODO :: 3 Solar PV Plants 4.5MW :: Ivanhoe, CA USA :: $18,000,000
OUR TESTIMONIALS
WHAT PEOPLE SAYS
OUR PARTNERS