taevas.xyz/src/components/tabs/Support.tsx

31 lines
941 B
TypeScript
Raw Normal View History

2023-05-31 15:20:31 +02:00
import React from "react";
import Tab from "./structure";
function Support({
lang,
2023-06-05 19:04:43 +02:00
tab,
setTab
}: {
lang: string,
tab: string
setTab: React.Dispatch<React.SetStateAction<string>>
2023-05-31 15:20:31 +02:00
}) {
2023-06-05 19:04:43 +02:00
let s = {
name: {
en: "support",
fr: "soutenir"
}
}
2023-05-31 15:20:31 +02:00
let elements = [(
<div>
<h3>Lorem Ipsum</h3>
<p>Wow! Support!</p>
</div>
)]
return (
2023-06-05 19:04:43 +02:00
<Tab tab={tab} setTab={setTab} id="support" name={s.name[lang]} elements={elements} image={<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#2e3436" d="M27.303 12a2.662 2.662 0 0 0-1.908.806l-.393.405l-.397-.405a2.662 2.662 0 0 0-3.816 0a2.8 2.8 0 0 0 0 3.896L25.002 21l4.209-4.298a2.8 2.8 0 0 0 0-3.896A2.662 2.662 0 0 0 27.303 12zM2 30h2v-5a5.006 5.006 0 0 1 5-5h6a5.006 5.006 0 0 1 5 5v5h2v-5a7.008 7.008 0 0 0-7-7H9a7.008 7.008 0 0 0-7 7zM12 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7z"/></svg>}/>
2023-05-31 15:20:31 +02:00
)
}
export default Support