wallet-core/packages/taler-wallet-webextension/src/test-utils.ts
2021-08-19 00:35:21 -03:00

9 lines
243 B
TypeScript

import { FunctionalComponent, h as render } from 'preact';
export function createExample<Props>(Component: FunctionalComponent<Props>, props: Partial<Props>) {
const r = (args: any) => render(Component, args)
r.args = props
return r
}