mirror of
https://github.com/linkwarden/linkwarden.git
synced 2026-06-30 07:46:13 +00:00
16 lines
363 B
TypeScript
16 lines
363 B
TypeScript
import type { SubscriptionStore } from "@linkwarden/prisma/client";
|
|
|
|
export default function mapStore(
|
|
store?: string | null
|
|
): SubscriptionStore | undefined {
|
|
switch (store?.toUpperCase()) {
|
|
case "APP_STORE":
|
|
case "MAC_APP_STORE":
|
|
return "APP_STORE";
|
|
case "PLAY_STORE":
|
|
return "PLAY_STORE";
|
|
default:
|
|
return undefined;
|
|
}
|
|
}
|