-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathAccountModal.tsx
34 lines (31 loc) · 1.1 KB
/
AccountModal.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from "react";
interface AccountModalProps {
onResponse: (hasAccount: boolean) => void;
}
const AccountModal: React.FC<AccountModalProps> = ({ onResponse }) => {
return (
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div className="bg-white rounded-lg p-4 max-w-sm w-full">
<h2 className="text-2xl font-bold mb-4 text-gray-800">Account Check</h2>
<p className="mb-6 text-gray-600">
Do you have an account on <span className="font-semibold">XYZ</span>?
</p>
<div className="flex justify-center space-x-4">
<button
onClick={() => onResponse(false)}
className="px-4 py-2 bg-gray-200 text-gray-800 rounded hover:bg-gray-300 transition-colors"
>
No
</button>
<button
onClick={() => onResponse(true)}
className="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 transition-colors"
>
Yes
</button>
</div>
</div>
</div>
);
};
export default AccountModal;