import React, { FunctionComponent, useState } from 'react';
export const carouselItemNodes = (len: number) => {
return new Array(len).fill(0).map((_, i) => {
return
{i + 1}
;
});
};
export const dynamicCarouselItemNodes = () => {
const Component: FunctionComponent = ({
id,
}: DynamicCarouselItemNodesProps) => {
const [state, setstate] = useState(0);
return (
);
};
return [
,
,
,
,
];
};
interface DynamicCarouselItemNodesProps {
id: number;
children?: React.ReactNode;
}
export const reactNodes = (prop: string, len: number) => {
return new Array(len).fill(0).map((_, i) => {
return {
key: i,
props: `${prop}-i`,
};
});
};