mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-30 06:02:00 +02:00
Refactor desktop app into separate client and proxy apps
This commit is contained in:
14
apps/yaak-client/hooks/useCreateWorkspace.tsx
Normal file
14
apps/yaak-client/hooks/useCreateWorkspace.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { useCallback } from 'react';
|
||||
import { CreateWorkspaceDialog } from '../components/CreateWorkspaceDialog';
|
||||
import { showDialog } from '../lib/dialog';
|
||||
|
||||
export function useCreateWorkspace() {
|
||||
return useCallback(() => {
|
||||
showDialog({
|
||||
id: 'create-workspace',
|
||||
title: 'Create Workspace',
|
||||
size: 'sm',
|
||||
render: ({ hide }) => <CreateWorkspaceDialog hide={hide} />,
|
||||
});
|
||||
}, []);
|
||||
}
|
||||
Reference in New Issue
Block a user