chore: saving off skeleton

This commit is contained in:
Kevin Nadro
2025-04-09 09:46:30 -05:00
parent 5d0530257c
commit 0236926cc8
10 changed files with 282 additions and 178 deletions

View File

@ -0,0 +1,22 @@
import { PATHS } from '@src/lib/paths'
import { systemIOActor } from '@src/machines/appMachine'
import { useSelector } from '@xstate/react'
import { useEffect } from 'react'
import { useNavigate } from 'react-router-dom'
import {
NO_PROJECT_DIRECTORY,
} from '@src/machines/systemIO/utils'
export const useAuthState = () => useSelector(systemIOActor, (state) => state)
export function SystemIOMachineLogicListener() {
const state = useAuthState()
useEffect(() => {
/* const requestedPath = `${PATHS.FILE}/${encodeURIComponent(
* requestedProjectName
)}`
* navigate(requestedPath) */
console.log(state)
}, [state])
return null
}