UNPKG

@wordpress/components

Version:
8 lines (7 loc) 651 B
{ "version": 3, "sources": ["../../../src/flex/flex-block/hook.ts"], "sourcesContent": ["/**\n * Internal dependencies\n */\n\nimport { useContextSystem } from '../../context';\nimport { useFlexItem } from '../flex-item';\nexport function useFlexBlock(props) {\n const otherProps = useContextSystem(props, 'FlexBlock');\n const flexItemProps = useFlexItem({\n isBlock: true,\n ...otherProps\n });\n return flexItemProps;\n}"], "mappings": ";AAIA,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AACrB,SAAS,aAAa,OAAO;AAClC,QAAM,aAAa,iBAAiB,OAAO,WAAW;AACtD,QAAM,gBAAgB,YAAY;AAAA,IAChC,SAAS;AAAA,IACT,GAAG;AAAA,EACL,CAAC;AACD,SAAO;AACT;", "names": [] }