import * as React from "react";
import Link from "next/link";
import Typography, { TypographyProps } from "@mui/material/Typography";

export interface CopyrightProps {
  className?: string;
  typographyProps?: TypographyProps;
}

export default function Copyright(props: CopyrightProps) {
  const { className, typographyProps } = props;

  return (
    <Typography
      variant="body2"
      color="text.secondary"
      align="center"
      {...typographyProps}
      className={className}
    >
      {"Copyright © "}
      <Link color="inherit" href="https://pingcap.com/">
        PingCAP
      </Link>{" "}
      {new Date().getFullYear()}
      {"."}
    </Typography>
  );
}
