import { Environment } from "react-relay" ; import { LOCAL_ID , lookup } from "coral-framework/lib/relay" ; export default function lookupStoryConnectionKey ( environment ) { switch ( lookup ( environment , LOCAL_ID ) . commentsTab ) { case "UNANSWERED_COMMENTS" : return "UnansweredStream_comments" ; } return "Stream_comments" ; }