// PageLinks.tsx

"use client";

import Link from "next/link";
import { ISidebarLink } from "@/app/features/dashboard/sidebar/SidebarLink.interfaces";
import "./PageLinks.scss";

export default function PageLinks({ title, path, icon: Icon }: ISidebarLink) {
  return (
    <Link href={path} passHref legacyBehavior>
      <a className="link-container">
        {Icon && <Icon />}
        <span className="link-text">{title}</span>
      </a>
    </Link>
  );
}
