You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
353 B
16 lines
353 B
import React from 'react'; |
|
|
|
export const carouselItemNodes = (len: number) => { |
|
return new Array(len).fill(0).map((_, i) => { |
|
return <div style={{ height: 600 }}>{i + 1}</div>; |
|
}); |
|
}; |
|
|
|
export const reactNodes = (prop: string, len: number) => { |
|
return new Array(len).fill(0).map((_, i) => { |
|
return { |
|
key: i, |
|
props: `${prop}-i`, |
|
}; |
|
}); |
|
};
|
|
|