Skip to content

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

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

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

interface IconPickerContextProps {
  onPick: (icon: Icon) => void;
}

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

export const useIconPicker = () => useContext(IconPickerContext);