Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

270 B
Raw Blame
import { createContext, useContext } from 'react';

import { AppType } from '@colanode/client/types';

interface AppContext {
  type: AppType;
}

export const AppContext = createContext<AppContext>({} as AppContext);

export const useApp = () => useContext(AppContext);