import { GQLSTORY_MODE } from "coral-framework/schema" ; import isStoryMode from "./isStoryMode" ; function coerceStoryMode ( storyMode ) { if ( ! storyMode || ! isStoryMode ( storyMode ) ) { return null ; } return storyMode ; } export default coerceStoryMode ;