mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 17:24:56 +03:00
17 lines
344 B
TypeScript
17 lines
344 B
TypeScript
import { readonly, writable } from 'svelte/store';
|
|
|
|
function createPurchaseStore() {
|
|
const isPurcharsed = writable(false);
|
|
|
|
function setPurchaseStatus(status: boolean) {
|
|
isPurcharsed.set(status);
|
|
}
|
|
|
|
return {
|
|
isPurchased: readonly(isPurcharsed),
|
|
setPurchaseStatus,
|
|
};
|
|
}
|
|
|
|
export const purchaseStore = createPurchaseStore();
|