const mapStateToProps = (state: RootState, props: { onClick: () => {} }) => ({
isFavorite: state.contextMenu.resource !== undefined && state.favorites[state.contextMenu.resource.uuid] === true,
const mapStateToProps = (state: RootState, props: { onClick: () => {} }) => ({
isFavorite: state.contextMenu.resource !== undefined && state.favorites[state.contextMenu.resource.uuid] === true,