Files
modeling-app/src/machines/systemIO/systemIOMachineWeb.ts

18 lines
626 B
TypeScript
Raw Normal View History

import type { Project } from '@src/lib/project'
2025-04-09 09:46:30 -05:00
import { systemIOMachine } from '@src/machines/systemIO/systemIOMachine'
2025-04-14 11:56:28 -06:00
import type { SystemIOContext } from '@src/machines/systemIO/utils'
import { SystemIOMachineActors } from '@src/machines/systemIO/utils'
2025-04-09 09:46:30 -05:00
import { fromPromise } from 'xstate'
export const systemIOMachineWeb = systemIOMachine.provide({
actors: {
2025-04-09 09:46:30 -05:00
[SystemIOMachineActors.readFoldersFromProjectDirectory]: fromPromise(
async ({ input: context }: { input: SystemIOContext }) => {
const projects: Project[] = []
console.log('nothing!')
return projects
}
),
},
})