Split from https://github.com/twentyhq/twenty/pull/4518 Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
11 lines
282 B
TypeScript
11 lines
282 B
TypeScript
import { createState } from 'twenty-ui';
|
|
|
|
import { Workspace } from '~/generated/graphql';
|
|
|
|
export type Workspaces = Pick<Workspace, 'id' | 'logo' | 'displayName'>;
|
|
|
|
export const workspacesState = createState<Workspaces[] | null>({
|
|
key: 'workspacesState',
|
|
defaultValue: [],
|
|
});
|