MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / Block

Function Block

packages/xadmin/src/block.js:27–31  ·  view source on GitHub ↗
({ name, children, ...props })

Source from the content-addressed store, hash-verified

25}
26
27const Block = ({ name, children, ...props }) => {
28 const bs = block(name, props)
29 return _.isFunction(children) ?
30 children(bs ? React.Children.toArray(bs) : null) : React.Children.toArray(bs)
31}
32
33export { Block, block }

Callers 3

Items.jsFile · 0.90
Menu.jsFile · 0.90
Header.jsFile · 0.90

Calls 1

blockFunction · 0.85

Tested by

no test coverage detected