Added translation
This commit is contained in:
@ -1,13 +1,19 @@
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const Footer = () => (
|
||||
<footer className="bg-gray-800 dark:bg-gray-900 text-white py-8 border-t border-gray-700 dark:border-gray-800">
|
||||
<div className="container mx-auto px-4 text-center">
|
||||
<p className="text-sm opacity-90">
|
||||
© {new Date().getFullYear()} REXNT - جميع الحقوق محفوظة
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
const Footer = () => {
|
||||
const { t } = useTranslation();
|
||||
const currentYear = new Date().getFullYear();
|
||||
|
||||
return (
|
||||
<footer className="bg-gray-800 dark:bg-gray-900 text-white py-8 border-t border-gray-700 dark:border-gray-800">
|
||||
<div className="container mx-auto px-4 text-center">
|
||||
<p className="text-sm opacity-90">
|
||||
{t("footer.copyright", { year: currentYear })}
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
export default Footer;
|
||||
Reference in New Issue
Block a user