Download wp-calypso/client/state/gutenberg-iframe-eligible/reducer.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 487 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/gutenberg-iframe-eligible/reducer.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/gutenberg-iframe-eligible/reducer.js
-
curl -L -o reducer.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/gutenberg-iframe-eligible/reducer.js
487 Bytes
| import { withStorageKey } from '@automattic/state-utils'; | |
| import { GUTENBERG_IFRAME_ELIGIBLE_SET } from 'calypso/state/action-types'; | |
| import { keyedReducer } from 'calypso/state/utils'; | |
| export const gutenbergIframeEligible = ( state, { type, isEligibleForGutenframe } ) => | |
| type === GUTENBERG_IFRAME_ELIGIBLE_SET ? isEligibleForGutenframe : state; | |
| const reducer = keyedReducer( 'siteId', gutenbergIframeEligible ); | |
| export default withStorageKey( 'gutenbergIframeEligible', reducer ); | |