import type { DriveFileInfo } from "@/lib/api/types"

/** Nextcloud trash internal name (e.g. `report.pdf.d1700000000`), not display name. */
export function driveTrashItemKey(item: Pick<DriveFileInfo, "path">): string {
  return item.path.replace(/^\/+/, "")
}
