7 lines
322 B
TypeScript
7 lines
322 B
TypeScript
import { ServerConnection } from "@/context/server"
|
|
import type { Platform } from "@/context/platform"
|
|
|
|
export function directoryPickerKind(platform: Platform["platform"], server: ServerConnection.Any) {
|
|
if (platform === "desktop" && ServerConnection.local(server)) return "native" as const
|
|
return "server" as const
|
|
}
|