1 | import React from "react";
|
2 |
|
3 | const Dashboard = props => {
|
4 | const { width, height, color, text } = props;
|
5 | return (
|
6 | <div
|
7 | style={{
|
8 | width: width || 600,
|
9 | height: height || 300,
|
10 | backgroundColor: color || "blue"
|
11 | }}
|
12 | >
|
13 | <h1>Dashboard boilerplate: {text}</h1>
|
14 | </div>
|
15 | );
|
16 | };
|
17 |
|
18 | export default Dashboard;
|