(dispatch: StoreDispatch)
| 52 | } |
| 53 | |
| 54 | const resetImageFilters = (dispatch: StoreDispatch) => { |
| 55 | dispatch(setBrightness(100)) |
| 56 | dispatch(setContrast(100)) |
| 57 | dispatch(setHue(180)) |
| 58 | dispatch(setSaturation(100)) |
| 59 | dispatch(setLightness(100)) |
| 60 | dispatch(setBlur(0)) |
| 61 | dispatch(setSharpen(0)) |
| 62 | dispatch(setPixelate(1)) |
| 63 | } |
| 64 | |
| 65 | export const useFilterActions = () => { |
| 66 | const dispatch = useDispatch.withTypes<StoreDispatch>()() |