()
| 38 | } = filterSlice.actions |
| 39 | |
| 40 | export const useFilterSelector = () => { |
| 41 | const selector = useSelector.withTypes<StoreState>() |
| 42 | return { |
| 43 | brightness: selector((state) => state.filter.brightness), |
| 44 | contrast: selector((state) => state.filter.contrast), |
| 45 | hue: selector((state) => state.filter.hue), |
| 46 | saturation: selector((state) => state.filter.saturation), |
| 47 | lightness: selector((state) => state.filter.lightness), |
| 48 | blur: selector((state) => state.filter.blur), |
| 49 | sharpen: selector((state) => state.filter.sharpen), |
| 50 | pixelate: selector((state) => state.filter.pixelate) |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | const resetImageFilters = (dispatch: StoreDispatch) => { |
| 55 | dispatch(setBrightness(100)) |
no outgoing calls
no test coverage detected