import React from "react";
import Table from "../../UI/Table";

const CustomerLoginTable = ({ form }) => {
  const columns = [
    {
      title: "Email",
      dataIndex: "email",
      key: "email",
    },
    {
      title: "Password",
      dataIndex: "password",
      key: "password",
    },
  ];

  const data = [
    {
      email: "dev@omega.ac",
      password: "12345678",
    },
  ];

  return (
    <div 
      className="cursor-pointer"
      onClick={() => {
        form?.setFieldsValue({
          email: data[0].email,
          password: data[0].password,
        });
      }}
    >
      <Table columns={columns} data={data} />
    </div>
  );
};

export default CustomerLoginTable;
