mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-19 00:57:48 +01:00
16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
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;
|
|
}
|