import { API_ALL_REGIONAL_CANDIDATES } from '../../../config' ; import countyConstituecies from '../../../data/county_constituency.json' ; export type SingleConstituencyCandidate = { county : string ; constituency : string ; name : string ; photo : string | null ; party : string ; experience : string | null ; currentLegislator : boolean ; } ; const getAllConstituencyCandidates = ( ) => { return fetch ( API_ALL_REGIONAL_CANDIDATES ) . then ( res => res . json ( ) ) . then ( ( res ) => { return res ; } ) ; } ; export default getAllConstituencyCandidates ;