igakim/mcs-ui

View on GitHub
src/components/card/CardImage.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';

const CardImage = (props) => {
  const { src, className, ...rest } = props;

  const userClasses = className || '';
  return (
    <div className={`mcs-card-image-container ${userClasses}`} {...rest}>
      <img src={src} className="mcs-card-image" />
    </div>
  );
};

export default CardImage;