Preview:```ts
import React, {FC} from "react"
function withFooBar<TOwnProps>(
Component: FC<{foo: string} & TOwnProps>
): FC<{bar: string} & TOwnProps> {
return ({bar, ...ownProps}) => {
return (
<Component
foo={"foo"}
{...(ownProps as unknown as TOwnProps)}
/>
)
}
...```
You can choose specific lines to embed by selecting them before copying the link.