31 lines
984 B
TypeScript
31 lines
984 B
TypeScript
"use client";
|
|
import React from "react";
|
|
import { settingItems } from "@/constants";
|
|
import { FaAngleLeft } from "react-icons/fa";
|
|
import Link from "next/link";
|
|
const CardSetting = ({ title = "", icon = "", onClick = (f: any) => f }) => {
|
|
return (
|
|
<>
|
|
{settingItems.map((menuItem) => (
|
|
<Link
|
|
href={menuItem.href}
|
|
className="cursor-pointer flex flex-row justify-between items-center bg-white shadow-[0_0_2px_1px_rgba(0,0,0,0.1)] rounded-md p-5 mb-3"
|
|
onClick={onClick}
|
|
key={menuItem.id}
|
|
>
|
|
<div className="flex flex-row items-center gap-3 text-gray-500">
|
|
{/* <Icon name={icon} className="" /> */}
|
|
{menuItem.icon}
|
|
<p className="text-black font-medium">{menuItem.title}</p>
|
|
</div>
|
|
|
|
{/* <Icon name={"angle-left"} className="" /> */}
|
|
<FaAngleLeft className="text-gray-500"/>
|
|
</Link>
|
|
))}
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default CardSetting;
|