mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
268 B
TypeScript
13 lines
268 B
TypeScript
import { NextComponentType } from "next";
|
|
|
|
export interface WithAmpConfig {
|
|
hybrid: boolean;
|
|
}
|
|
|
|
export function withAmp(
|
|
Component: NextComponentType | React.ComponentType,
|
|
config?: WithAmpConfig
|
|
): React.ComponentType;
|
|
|
|
export function useAmp(): boolean;
|