cfb0cce9b8
* Wip refactoring view * Post merge conflicts * Fix review * Add create view capability * Fix create object missing view * Fix tests
14 lines
311 B
TypeScript
14 lines
311 B
TypeScript
import { useRecoilState } from 'recoil';
|
|
|
|
import { iconPickerState } from '../states/iconPickerState';
|
|
|
|
export const useIconPicker = () => {
|
|
const [iconPicker, setIconPicker] = useRecoilState(iconPickerState);
|
|
|
|
return {
|
|
Icon: iconPicker.Icon,
|
|
iconKey: iconPicker.iconKey,
|
|
setIconPicker,
|
|
};
|
|
};
|