Last active
June 7, 2022 21:46
-
-
Save Keraito/cb2aec24be681a3dedb615007bebd6e4 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 = Pick<Something, "propA" | "propB" | "children"> & { | |
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