Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
9
node_modules/next/dist/esm/shared/lib/amp.js
generated
vendored
Normal file
9
node_modules/next/dist/esm/shared/lib/amp.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import React from 'react';
|
||||
import { AmpStateContext } from './amp-context.shared-runtime';
|
||||
import { isInAmpMode } from './amp-mode';
|
||||
export function useAmp() {
|
||||
// Don't assign the context value to a variable to save bytes
|
||||
return isInAmpMode(React.useContext(AmpStateContext));
|
||||
}
|
||||
|
||||
//# sourceMappingURL=amp.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue