"use client";

import { FC } from "react";
import { LogOut, ChevronLeft } from "lucide-react";

interface LogoutItemProps {
  onClick: () => void;
}

const LogoutItem: FC<LogoutItemProps> = ({ onClick }) => {
  return (
    <button
    onClick={onClick}
    className="flex items-center justify-between px-6 py-4 bg-red-600/20 text-red-500 hover:bg-red-600/30 transition rounded-xl w-full font-medium"
  >
    <div className="flex items-center">
      <LogOut className="h-6 w-6" />
      <span className="text-base mr-3">خروج از حساب‌کاربری</span>
    </div>

    <ChevronLeft className="h-5 w-5" />
  </button>
  );
};

export default LogoutItem;
