File size: 535 Bytes
391b583
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Button from 'react-bootstrap/Button';
import Card from 'react-bootstrap/Card';

function CardWrapper( {title = "", text = "", imageSrc = "", btnText = "", btnHref = ""} ) {
  return (
    <Card style={{ width: '18rem' }}>
      <Card.Img variant="top" src={imageSrc} />
      <Card.Body>
        <Card.Title>{title}</Card.Title>
        <Card.Text>
          {text}
        </Card.Text>
        <Button as="a" variant="primary" href={btnHref}>{btnText}</Button>
      </Card.Body>
    </Card>
  );
}

export default CardWrapper;