/**
=========================================================
* Material Dashboard 2 PRO React TS - v1.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
Coded by www.creative-tim.com
=========================================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
// @mui material components
import Link from "@mui/material/Link";
import Icon from "@mui/material/Icon";
// Material Dashboard 2 PRO React TS components
import MDBox from "components/MDBox";
import MDTypography from "components/MDTypography";
// Material Dashboard 2 PRO React TS Base Styles
import typography from "assets/theme/base/typography";
// Declaring props types for Footer
interface Props {
company?: {
href: string;
name: string;
};
links?: {
href: string;
name: string;
}[];
[key: string]: any;
}
function Footer({ company, links }: Props): JSX.Element {
const { href, name } = company;
const { size } = typography;
const renderLinks = () =>
links.map((link) => (
{link.name}
));
return (
© {new Date().getFullYear()}, made with
favorite
by
{name}
for a better web.
({
display: "flex",
flexWrap: "wrap",
alignItems: "center",
justifyContent: "center",
listStyle: "none",
mt: 3,
mb: 0,
p: 0,
[breakpoints.up("lg")]: {
mt: 0,
},
})}
>
{renderLinks()}
);
}
// Declaring default props for Footer
Footer.defaultProps = {
company: { href: "https://www.creative-tim.com/", name: "Creative Tim" },
links: [
{ href: "https://www.creative-tim.com/", name: "Creative Tim" },
{ href: "https://www.creative-tim.com/presentation", name: "About Us" },
{ href: "https://www.creative-tim.com/blog", name: "Blog" },
{ href: "https://www.creative-tim.com/license", name: "License" },
],
};
export default Footer;