Files
modeling-app/src/lib/commandBarConfigs/authCommandConfig.ts
2025-04-22 12:31:39 -05:00

15 lines
395 B
TypeScript

import type { Command } from '@src/lib/commandTypes'
import { authActor } from '@src/lib/singletons'
import { ACTOR_IDS } from '@src/machines/machineConstants'
export const authCommands: Command[] = [
{
groupId: ACTOR_IDS.AUTH,
name: 'log-out',
displayName: 'Log out',
icon: 'arrowLeft',
needsReview: false,
onSubmit: () => authActor.send({ type: 'Log out' }),
},
]