interface ComponentProps<V, D> {
value: V;
data: D;
props: unknown;
}
const Component = ({value, data, ...props}: ComponentProps<typeof value, keyof data>) => <></>
interface ComponentProps<V, D> {
value: V;
data: D;
}
const Component = <V, D>({ value, data }: ComponentProps<V, D>) => <></>;