function hasOpenCall(cfpDeadline) {
  if (cfpDeadline === false) {
    return <Circle color="#eee" />;
  }

  const currentDate = new Date();
  const deadline = new Date(cfpDeadline);

  if (deadline > currentDate) {
    return <Circle color="green" />;
  }

  return <Circle color="red" />;
}
/**
 * Helper to display whether a conference has an open call for speakers.
 */
Helper to display whether a conference has an open call for speakers.
Helper to display whether a conference has an open call for speakers .
function hasOpenCall(cfpDeadline) {
  if (cfpDeadline === false) {
    return <Circle color="#eee" />;
  }
  const currentDate = new Date();
  const deadline = new Date(cfpDeadline);
  if (deadline > currentDate) {
    return <Circle color="green" />;
  }
  return <Circle color="red" />;
}
function hasOpenCall ( cfpDeadline ) { if ( cfpDeadline === false ) { return < Circle color = "#eee" / > ; } const currentDate = new Date ( ) ; const deadline = new Date ( cfpDeadline ) ; if ( deadline > currentDate ) { return < Circle color = "green" / > ; } return < Circle color = "red" / > ; }
Helper to display whether a conference has an open call for speakers.
Helper to display whether a conference has an open call for speakers .