(element)
| 180 | }; |
| 181 | |
| 182 | function isVisible(element) { |
| 183 | if ( |
| 184 | !element || |
| 185 | !element.style || |
| 186 | !element.parentNode || |
| 187 | !element.parentNode.style |
| 188 | ) { |
| 189 | return false; |
| 190 | } |
| 191 | |
| 192 | const elementStyle = getComputedStyle(element); |
| 193 | |
| 194 | return ( |
| 195 | elementStyle.display !== 'none' && |
| 196 | elementStyle.visibility !== 'hidden' && |
| 197 | getComputedStyle(element.parentNode).display !== 'none' |
| 198 | ); |
| 199 | } |
| 200 | |
| 201 | const Carousel: BsPrefixRefForwardingComponent<'div', CarouselProps> = |
| 202 | // eslint-disable-next-line react/display-name |
no outgoing calls
no test coverage detected
searching dependent graphs…