Footer.jsx 558B

12345678910111213141516171819202122
  1. import React from "react";
  2. import { Layout } from "antd";
  3. import { useModel } from "@/store";
  4. import { useTranslation } from "react-i18next";
  5. const { Footer } = Layout;
  6. const year = new Date().getFullYear();
  7. export default React.forwardRef((props, ref) => {
  8. // const { app } = useModel("system");
  9. const { t } = useTranslation();
  10. const copyRight = `${t("companyName") || "南京云致"} @ ${year}`;
  11. return (
  12. <Footer
  13. ref={ref}
  14. style={{ textAlign: "center", color: "rgba(0,0,0, 0.3)" }}
  15. >
  16. {copyRight}
  17. </Footer>
  18. );
  19. });