You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
477 B
JavaScript
18 lines
477 B
JavaScript
import { Button, Row, Col } from 'react-bootstrap';
|
|
import { Link } from 'react-router-dom';
|
|
|
|
export default function Banner({data}) {
|
|
|
|
console.log(data);
|
|
const {title, content, destination, label} = data;
|
|
|
|
return (
|
|
<Row>
|
|
<Col className="p-4 text-center">
|
|
<h1>{title}</h1>
|
|
<p>{content}</p>
|
|
<Link className="btn btn-primary" to={destination}>{label}</Link>
|
|
</Col>
|
|
</Row>
|
|
)
|
|
} |