Added translation

This commit is contained in:
Rahaf
2026-01-12 16:53:25 +03:00
parent 963805cada
commit fcbc65a5e1
2 changed files with 24 additions and 11 deletions

View File

@ -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;