import LinkCard from "@/components/LinkCard"; import SortDropdown from "@/components/SortDropdown"; import useLinks from "@/hooks/useLinks"; import MainLayout from "@/layouts/MainLayout"; import useLinkStore from "@/store/links"; import { Sort } from "@/types/global"; import React, { useState } from "react"; import PageHeader from "@/components/PageHeader"; export default function PinnedLinks() { const { links } = useLinkStore(); const [sortBy, setSortBy] = useState(Sort.DateNewestFirst); useLinks({ sort: sortBy, pinnedOnly: true }); return (
{links.some((e) => e.pinnedBy && e.pinnedBy[0]) ? (
{links.map((e, i) => { return ; })}
) : (

Pin Your Favorite Links Here!

You can Pin your favorite Links by clicking on the three dots on each Link and clicking{" "} Pin to Dashboard.

)}
); }