Initial boiler plate project
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user