(children: React.ReactNode)
| 124 | } |
| 125 | |
| 126 | export const getValidChildren = (children: React.ReactNode) => { |
| 127 | return React.Children.toArray(children).filter(child => React.isValidElement(child)) as React.ReactElement[] |
| 128 | } |
| 129 | |
| 130 | const calculatePossibleItems = (childWidthArray: ChildWidthArray, navWidth: number, moreMenuWidth = 0) => { |
| 131 | const widthToFit = navWidth - moreMenuWidth |