Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

300 B
Raw Blame
import { FolderSummary } from "@/lib/types";

export const isDefaultFolder = ({
  folder,
  defaultFolderId,
}: {
  folder: FolderSummary;
  defaultFolderId: string | null | undefined;
}) => {
  const folderId = folder.id === "unsorted" ? null : folder.id;

  return folderId === defaultFolderId;
};