I used to using object with actions, but when i try to use it with typescript, there\'s no way i can use it in functional component Here\'s some code snippet: