(blockId: string)
| 53 | } |
| 54 | |
| 55 | function useBlock(blockId: string) : Block { |
| 56 | const { blocks } = useBlocksContext(); |
| 57 | return blocks[blockId]; |
| 58 | } |
| 59 | |
| 60 | function BlocksProvider({ children, defaultBlocks, extractBlocks }: any) { |
| 61 | const blocksRef = useRef({ |
no test coverage detected