diff options
Diffstat (limited to 'packages/web-util/src/tests/hook.ts')
-rw-r--r-- | packages/web-util/src/tests/hook.ts | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/packages/web-util/src/tests/hook.ts b/packages/web-util/src/tests/hook.ts index ddc96eb0e..fb9f979e5 100644 --- a/packages/web-util/src/tests/hook.ts +++ b/packages/web-util/src/tests/hook.ts @@ -44,31 +44,6 @@ export function createExample<Props>( }; } -// export function createExampleWithCustomContext<Props, ContextProps>( -// Component: FunctionalComponent<Props>, -// props: Partial<Props> | (() => Partial<Props>), -// ContextProvider: FunctionalComponent<ContextProps>, -// contextProps: Partial<ContextProps>, -// ): ComponentChildren { -// /** -// * FIXME: -// * This may not be useful since the example can be created with context -// * already -// */ -// const evaluatedProps = typeof props === "function" ? props() : props; -// const Render = (args: any): VNode => create(Component, args); -// const WithContext = (args: any): VNode => -// create(ContextProvider, { -// ...contextProps, -// children: [Render(args)], -// } as any); - -// return { -// component: WithContext, -// props: evaluatedProps, -// }; -// } - const isNode = typeof window === "undefined"; /** |