Files
modeling-app/src/machines/systemIO/systemIOMachineWeb.ts
2025-04-14 11:56:28 -06:00

18 lines
626 B
TypeScript

import type { Project } from '@src/lib/project'
import { systemIOMachine } from '@src/machines/systemIO/systemIOMachine'
import type { SystemIOContext } from '@src/machines/systemIO/utils'
import { SystemIOMachineActors } from '@src/machines/systemIO/utils'
import { fromPromise } from 'xstate'
export const systemIOMachineWeb = systemIOMachine.provide({
actors: {
[SystemIOMachineActors.readFoldersFromProjectDirectory]: fromPromise(
async ({ input: context }: { input: SystemIOContext }) => {
const projects: Project[] = []
console.log('nothing!')
return projects
}
),
},
})