33 lines
984 B
JavaScript
33 lines
984 B
JavaScript
import './App.css';
|
|
import {Button} from 'react-bootstrap';
|
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
import './styles/roots.scss';
|
|
import data from './roots.json'
|
|
|
|
function App() {
|
|
const socialTypes = ["facebook", "instagram", "twitter", "github", "youtube", "linkedin", "pinterest", "messenger", "whatsapp"];
|
|
|
|
return (
|
|
<div className="App">
|
|
<h1 id="title">{data.title}</h1>
|
|
<div id="container">
|
|
<Button id="facebook" variant="primary">Facebook</Button>
|
|
{/*{data.links.map((rootDetail, index)=>{
|
|
if(rootDetail.type == "facebook") {
|
|
res = <AwesomeButton className="roots"></AwesomeButton>
|
|
}
|
|
else if (rootDetail.type === "basic") {
|
|
res =
|
|
}
|
|
else {
|
|
// throw "One of your roots has an unrecognized type. Check out the documentation for the supported types.";
|
|
}
|
|
return res;
|
|
})}*/}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default App;
|