linkroots/src/App.js

33 lines
984 B
JavaScript
Raw Normal View History

import './App.css';
2021-11-05 12:04:29 +00:00
import {Button} from 'react-bootstrap';
2021-11-05 15:18:23 +00:00
import 'bootstrap/dist/css/bootstrap.min.css';
2021-11-05 15:29:32 +00:00
import './styles/roots.scss';
2021-10-14 16:56:16 +00:00
import data from './roots.json'
function App() {
2021-10-15 15:58:37 +00:00
const socialTypes = ["facebook", "instagram", "twitter", "github", "youtube", "linkedin", "pinterest", "messenger", "whatsapp"];
return (
<div className="App">
2021-10-14 16:56:16 +00:00
<h1 id="title">{data.title}</h1>
2021-10-28 18:03:09 +00:00
<div id="container">
2021-11-05 19:47:01 +00:00
<Button id="facebook" variant="primary">Facebook</Button>
2021-10-28 18:03:09 +00:00
{/*{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;