2024-02-11 12:59:00 +11:00
|
|
|
import { OnboardingButtons, useDismiss, useNextClick } from '.'
|
|
|
|
|
import { onboardingPaths } from 'routes/Onboarding/paths'
|
2023-09-15 22:37:40 -04:00
|
|
|
import { useStore } from '../../useStore'
|
|
|
|
|
|
|
|
|
|
export default function UserMenu() {
|
|
|
|
|
const { buttonDownInStream } = useStore((s) => ({
|
|
|
|
|
buttonDownInStream: s.buttonDownInStream,
|
|
|
|
|
}))
|
|
|
|
|
const dismiss = useDismiss()
|
|
|
|
|
const next = useNextClick(onboardingPaths.PROJECT_MENU)
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="fixed grid justify-center items-start inset-0 z-50 pointer-events-none">
|
|
|
|
|
<div
|
|
|
|
|
className={
|
2023-12-18 06:15:26 -05:00
|
|
|
'max-w-xl flex flex-col border border-chalkboard-50 dark:border-chalkboard-80 shadow-lg justify-center bg-chalkboard-10 dark:bg-chalkboard-90 p-8 rounded' +
|
2023-09-15 22:37:40 -04:00
|
|
|
(buttonDownInStream ? '' : ' pointer-events-auto')
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
<section className="flex-1">
|
2023-12-19 14:19:34 -05:00
|
|
|
<h2 className="text-2xl font-bold">User Menu</h2>
|
2023-09-15 22:37:40 -04:00
|
|
|
<p className="my-4">
|
|
|
|
|
Click your avatar on the upper right to open the user menu. You can
|
2023-09-18 16:13:04 -04:00
|
|
|
change your settings, sign out, or request a feature.
|
2023-09-15 22:37:40 -04:00
|
|
|
</p>
|
|
|
|
|
</section>
|
2023-12-06 14:44:13 -05:00
|
|
|
<OnboardingButtons
|
|
|
|
|
dismiss={dismiss}
|
|
|
|
|
next={next}
|
|
|
|
|
nextText="Next: Project Menu"
|
|
|
|
|
/>
|
2023-09-15 22:37:40 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|