mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 10:21:15 +01:00
Rework licensing flows to be more friendly
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
import { useKeyValue } from './useKeyValue';
|
||||
|
||||
interface LicenseConfirmation {
|
||||
hasDismissedTrial: boolean;
|
||||
confirmedPersonalUse: boolean;
|
||||
}
|
||||
|
||||
export function useLicenseConfirmation() {
|
||||
const { set, value } = useKeyValue<LicenseConfirmation>({
|
||||
key: 'license_confirmation',
|
||||
fallback: { hasDismissedTrial: false, confirmedPersonalUse: false },
|
||||
});
|
||||
|
||||
return [value, set] as const;
|
||||
}
|
||||
Reference in New Issue
Block a user