+ {({
+ setOverflowRef,
+ isScrolledToStart,
+ isScrolledToEnd,
+ scrollToPrevious,
+ scrollToNext,
+ }: OverflowScrollContextProps) => (
<>
- {!isScrolledToStart && (
+ <>
+ {!isScrolledToStart && (
- )}
- {!isScrolledToEnd && (
+ )}
+ {!isScrolledToEnd && (
- )}
+ )}
+ >
+
+
+ {items?.map((item, id) => {
+ const { children } = item?.props || {};
+ if (!children) {
+ return null;
+ }
+ // eslint-disable-next-line react/no-array-index-key
+ return createElement(Chip, { ...item.props, key: id });
+ })}
+
+
>
-
-
- {items?.map((item, id) => {
- const { children } = item?.props || {};
- if (!children) {
- return null;
- }
- // eslint-disable-next-line react/no-array-index-key
- return React.createElement(Chip, { ...item.props, key: id });
- })}
-
-
- >
- )}
-
-