Skip to content

Instantly share code, notes, and snippets.

@zafar-saleem
Created February 15, 2023 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zafar-saleem/dc2718f0df6e4c89d26364b7af0a4eb1 to your computer and use it in GitHub Desktop.
Save zafar-saleem/dc2718f0df6e4c89d26364b7af0a4eb1 to your computer and use it in GitHub Desktop.
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