2023-05-31 15:20:31 +02:00
|
|
|
import React from "react";
|
2024-04-24 03:05:48 +02:00
|
|
|
import Tab from "../Tab.js";
|
2024-05-08 16:28:41 +02:00
|
|
|
import Translatable from "../Translatable.js";
|
2024-05-09 02:08:41 +02:00
|
|
|
import {UserFavorite} from "@carbon/icons-react";
|
2024-05-16 22:44:38 +02:00
|
|
|
import {type TabDetails} from "../../contexts.js";
|
2023-05-31 15:20:31 +02:00
|
|
|
|
2024-05-08 16:28:41 +02:00
|
|
|
export default function Support({
|
2024-05-14 22:43:48 +02:00
|
|
|
setTabs,
|
2023-06-05 19:04:43 +02:00
|
|
|
}: {
|
2024-05-16 22:44:38 +02:00
|
|
|
setTabs: React.Dispatch<React.SetStateAction<TabDetails[]>>;
|
2023-05-31 15:20:31 +02:00
|
|
|
}) {
|
2023-11-05 21:01:24 +01:00
|
|
|
const elements = [(
|
2024-05-08 16:28:41 +02:00
|
|
|
<div className="m-4 pb-2 text-white" key={"support"}>
|
|
|
|
<p>
|
|
|
|
<b>
|
|
|
|
<Translatable
|
|
|
|
en={"Thanks for even considering supporting me!"}
|
|
|
|
fr={"Déjà, merci d'envisager de me soutenir !"}
|
|
|
|
/>
|
|
|
|
</b>
|
|
|
|
</p>
|
2023-10-30 00:52:36 +01:00
|
|
|
<br/>
|
2024-05-08 16:28:41 +02:00
|
|
|
<p>
|
|
|
|
<Translatable
|
|
|
|
en={"Monthly, I would basically only need $3 from 2 people to keep doing what I like without losing much money!"}
|
|
|
|
fr={"En gros, je n'aurais besoin que de $3 de 2 personnes par mois pour que je puisse continuer de faire ce que j'aime sans perdre top d'argent !"}
|
|
|
|
/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<Translatable
|
|
|
|
en={"Only if you want and if you can, you may support me through my Ko-fi page:"}
|
|
|
|
fr={"Seulement si vous le souhaitez et si vous le pouvez, alors vous pouvez me soutenir sur ma page Ko-fi :"}
|
|
|
|
/>
|
|
|
|
</p>
|
2024-04-24 22:35:22 +02:00
|
|
|
<a href='https://ko-fi.com/V7V4J78L0' target='_blank' rel="noreferrer">
|
2023-10-30 00:52:36 +01:00
|
|
|
<img className="h-12 mx-auto my-2" src='https://storage.ko-fi.com/cdn/kofi3.png?v=3' alt='Support me on Ko-fi!' />
|
|
|
|
</a>
|
2023-05-31 15:20:31 +02:00
|
|
|
</div>
|
2024-04-24 22:35:22 +02:00
|
|
|
)];
|
2024-05-08 16:28:41 +02:00
|
|
|
|
2023-10-30 00:52:36 +01:00
|
|
|
return (
|
2024-05-08 16:28:41 +02:00
|
|
|
<Tab
|
2024-05-14 22:43:48 +02:00
|
|
|
setTabs={setTabs}
|
2024-05-08 16:28:41 +02:00
|
|
|
id="support"
|
|
|
|
name={
|
|
|
|
<Translatable
|
|
|
|
en={"Support"}
|
|
|
|
fr={"Soutenir"}
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
elements={elements}
|
2024-05-12 16:55:00 +02:00
|
|
|
logo={<UserFavorite size={48} fill=""/>}
|
2024-05-16 22:44:38 +02:00
|
|
|
position="lg:left-[550px] lg:top-[350px]"
|
2024-05-08 16:28:41 +02:00
|
|
|
/>
|
2024-04-24 22:35:22 +02:00
|
|
|
);
|
2023-05-31 15:20:31 +02:00
|
|
|
}
|