chore: drop wip comments

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-11-30 13:19:21 +01:00
committed by blam
parent e9471d274c
commit 15b98232d0
@@ -480,56 +480,3 @@ export class AppManager implements BackstageApp {
}
}
}
// interface FooPropsV1 {
// foo: () => undefined;
// }
// interface FooPropsV2 {
// foo: () => undefined;
// bar: () => undefined;
// }
// // type FooProps = {
// // foo: () => undefined
// // } | {
// // foo: () => undefined
// // bar: () => undefined
// // }
// interface CreateDerpOptions {
// components: {
// Foo: (props: FooPropsV1 | FooPropsV2) => JSX.Element;
// };
// }
// interface Derp {
// getComponents(): {
// Foo: (props: FooPropsV1) => JSX.Element;
// };
// }
// function createDerp(options: CreateDerpOptions): Derp {
// return { getComponents: () => options.components };
// }
// function CustomFoo(props: FooPropsV1) {
// return <div>{props.foo()}</div>;
// }
// function NewCustomFoo(props: FooPropsV2) {
// return (
// <div>
// {props.foo()} {props.bar()}
// </div>
// );
// }
// const derp = createDerp({
// components: {
// Foo: NewCustomFoo,
// },
// });
// const { Foo } = derp.getComponents();
// const _foo = <Foo foo={() => undefined} />;