You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
667 B
TypeScript
25 lines
667 B
TypeScript
2 years ago
|
import React from 'react';
|
||
|
import { useDispatch } from 'react-redux';
|
||
|
import { resetRightOverlayMode } from '../../../../state/ducks/section';
|
||
|
|
||
|
export const OverlayDisappearingMessages = () => {
|
||
|
const dispatch = useDispatch();
|
||
|
|
||
|
function resetOverlay() {
|
||
|
dispatch(resetRightOverlayMode());
|
||
|
}
|
||
|
|
||
|
// const timerOptions = useSelector(getTimerOptions).timerOptions;
|
||
|
|
||
|
// const disappearingMessagesOptions = timerOptions.map(option => {
|
||
|
// return {
|
||
|
// content: option.name,
|
||
|
// onClick: () => {
|
||
|
// void setDisappearingMessagesByConvoId(id, option.value);
|
||
|
// },
|
||
|
// };
|
||
|
// });
|
||
|
|
||
|
return <div onClick={resetOverlay}>TODO</div>;
|
||
|
};
|