import { UI_CONFIG } from "@/constants/auth";
import Link from "next/link";

interface LoginFooterProps {
  showRegisterLink?: boolean;
}

/**
 * 로그인 페이지 푸터 컴포넌트
 */
export function LoginFooter({ showRegisterLink = true }: LoginFooterProps) {
  return (
    <div className="text-center text-sm text-slate-500">
      {showRegisterLink && (
        <div className="mb-4">
          <p className="text-slate-600">
            계정이 없으신가요?{" "}
            <Link
              href="/register"
              className="font-medium text-slate-900 hover:underline"
            >
              회원가입
            </Link>
          </p>
        </div>
      )}
      <p>{UI_CONFIG.COPYRIGHT}</p>
      <p className="mt-1">{UI_CONFIG.POWERED_BY}</p>
    </div>
  );
}
