import { BuilderRuntimeNode } from "../interfaces" ; import { Story , StoryDoc } from "@next-core/brick-types" ; export function getBrickDoc ( node , storyList ) { const find = storyList ?. find ( ( item ) => item . storyId === node . brick ) ; return find ?. doc as StoryDoc ; }