11 lines
353 B
TypeScript
11 lines
353 B
TypeScript
import { selectExpandedStatus, selectPlainStatus } from '../selectors/statuses';
|
|
import { useAppSelector } from '../store';
|
|
|
|
export function useStatus(id: string) {
|
|
return useAppSelector((state) => selectPlainStatus(state, id));
|
|
}
|
|
|
|
export function useExpandedStatus(id: string) {
|
|
return useAppSelector((state) => selectExpandedStatus(state, id));
|
|
}
|