(
e: React.MouseEvent,
_post: Post,
index: number,
row: number,
column: number,
)
| 47 | }; |
| 48 | |
| 49 | const onShareMenuClick = ( |
| 50 | e: React.MouseEvent, |
| 51 | _post: Post, |
| 52 | index: number, |
| 53 | row: number, |
| 54 | column: number, |
| 55 | ) => { |
| 56 | if (postMenuIndex === index) { |
| 57 | setPostMenuLocation(null); |
| 58 | return; |
| 59 | } |
| 60 | setPostMenuLocation({ index, row, column }); |
| 61 | }; |
| 62 | |
| 63 | return { |
| 64 | onMenuClick, |
nothing calls this directly
no outgoing calls
no test coverage detected