(option: MenuItemProps)
| 60 | ); |
| 61 | |
| 62 | const destructive = (option: MenuItemProps): MenuItemProps => |
| 63 | option.id === 'delete' |
| 64 | ? { |
| 65 | ...option, |
| 66 | Wrapper: ({ children }) => ( |
| 67 | <span className="contents text-status-error">{children}</span> |
| 68 | ), |
| 69 | } |
| 70 | : option; |
| 71 | |
| 72 | export const PostOptionsSheet = ({ |
| 73 | options, |
nothing calls this directly
no outgoing calls
no test coverage detected