// src/AppleLoginButton.tsx
import React from 'react';

interface AppleLoginButtonProps {
  clientId: string;
  redirectUri: string;
}

const AppleLoginButton: React.FC<AppleLoginButtonProps> = ({ clientId, redirectUri }) => {
  const handleLogin = () => {
    // Logic for Apple login goes here
    window.location.href = `https://appleid.apple.com/auth/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code`;
  };

  return (
    <button onClick={handleLogin}>
      Login with Apple
    </button>
  );
};

export default AppleLoginButton;
