Created
February 15, 2023 07:35
-
-
Save zafar-saleem/dc2718f0df6e4c89d26364b7af0a4eb1 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 { StyledCard } from './Card.styled'; | |
type TCard = { | |
children?: React.ReactDOM; | |
bgColor?: string; | |
} | |
export const Card: React.FC<TCard> = ({ children, bgColor }) => { | |
return ( | |
<StyledCard bgColor={bgColor}> | |
{children} | |
</StyledCard> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment