8 lines
162 B
JavaScript
8 lines
162 B
JavaScript
|
import {useContext} from 'react';
|
||
|
|
||
|
import {SelectionContext} from './context';
|
||
|
|
||
|
export default function useSelection() {
|
||
|
return useContext(SelectionContext);
|
||
|
}
|