linkroots/src/App.js

31 lines
927 B
JavaScript
Raw Normal View History

import './App.css';
2021-10-28 16:45:19 +00:00
import {AwesomeButton} from 'react-awesome-button';
2021-10-15 15:58:37 +00:00
import AwesomeButtonStyle from "react-awesome-button/dist/styles.css";
2021-10-14 16:56:16 +00:00
import data from './roots.json'
function App() {
2021-10-15 15:58:37 +00:00
var res;
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 16:45:19 +00:00
<AwesomeButton className="roots"></AwesomeButton>
{/*{data.links.map((rootDetail, index)=>{
if(rootDetail.type == "facebook") {
res = <AwesomeButton className="roots"></AwesomeButton>
2021-10-15 15:58:37 +00:00
}
else if (rootDetail.type === "basic") {
2021-10-28 16:45:19 +00:00
res =
2021-10-15 15:58:37 +00:00
}
else {
// throw "One of your roots has an unrecognized type. Check out the documentation for the supported types.";
}
return res;
2021-10-28 16:45:19 +00:00
})}*/}
</div>
);
}
export default App;