Last active
June 7, 2022 21:45
-
-
Save Keraito/0750ae0b7b6d4651ebaf054a20d105e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PropsWithChildren } from "react"; | |
import { SomeOtherComponent, SomeOtherComponentProps } from "./someOtherComponent"; | |
type ComponentProps = Omit<Something, "propC" | "propD"> & { | |
wrapperClassName?: string; | |
} | |
export const Component = (props: ComponentProps) => ( | |
<div className={props.wrapperClassName}> | |
<SomeOtherComponent propA={props.propA} propB={props.propB}> | |
{props.children} | |
</SomeOtherComponent> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment