Files
uiogaming.no/src/components/items/back.js
T
LBlend aec4a9406e initial translation support
I should've divided this into multiple commits but oh well. This is just initial as there are still parts that needs to be done. Particularly user generated content needs to be translated somehow. See issue #45 for more info
2024-03-13 02:36:31 +01:00

24 lines
490 B
JavaScript

import * as React from "react"
import * as styles from "./back.module.css"
import { graphql } from "gatsby"
import { FaArrowLeft } from "react-icons/fa"
import { useTranslation } from "gatsby-plugin-react-i18next"
const Back = () => {
const { t } = useTranslation()
return (
<button
className={`${styles.container} ${styles.button}`}
onClick={() => window.history.back()}
>
<FaArrowLeft />
<p>{t("back")}</p>
</button>
)
}
export default Back