Created
March 6, 2022 07:34
-
-
Save mohsentaleb/af11dc8e3bb637bd0cf5369a86d935d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const setBackground = ( | |
background: string | |
): { | |
type: "SET_BACKGROUND_COLOR"; | |
payload: { | |
background: string; | |
}; | |
} => ({ | |
type: "SET_BACKGROUND_COLOR", | |
payload: { | |
background | |
} | |
}); | |
export const setContent = ( | |
content: string | |
): { | |
type: "SET_CONTENT"; | |
payload: { | |
content: string; | |
}; | |
} => ({ | |
type: "SET_CONTENT", | |
payload: { | |
content | |
} | |
}); | |
export type Action = | |
| ReturnType<typeof setBackground> | |
| ReturnType<typeof setContent>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment