| 1 | import * as Schema from "effect/Schema"; |
| 2 | |
| 3 | /** |
| 4 | * Accounts that opted out of the post-sign-in T3 Connect onboarding wizard |
| 5 | * ("Don't show this again"). The wizard otherwise shows on every sign-in, |
| 6 | * since sign-out clears the connected environments. |
| 7 | */ |
| 8 | export const CONNECT_ONBOARDING_OPT_OUT_STORAGE_KEY = "t3code:connect-onboarding-opt-out:v1"; |
| 9 | |
| 10 | export const ConnectOnboardingOptOutSchema = Schema.Struct({ |
| 11 | optOutAccounts: Schema.Array(Schema.String), |
| 12 | }); |
| 13 | |
| 14 | export type ConnectOnboardingOptOutState = typeof ConnectOnboardingOptOutSchema.Type; |
| 15 | |
| 16 | export const EMPTY_CONNECT_ONBOARDING_OPT_OUT_STATE: ConnectOnboardingOptOutState = { |
| 17 | optOutAccounts: [], |
| 18 | }; |