11 lines
344 B
TypeScript
11 lines
344 B
TypeScript
import {
|
|
GET_DASHBOARD_RECENT_PROJECTS,
|
|
type RecentProjectsElectronApi,
|
|
} from '@features/recent-projects/contracts';
|
|
import { ipcRenderer } from 'electron';
|
|
|
|
export function createRecentProjectsBridge(): RecentProjectsElectronApi {
|
|
return {
|
|
getDashboardRecentProjects: () => ipcRenderer.invoke(GET_DASHBOARD_RECENT_PROJECTS),
|
|
};
|
|
}
|