mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-16 21:04:22 +01:00
feat: connect donation sats api, build donation sat skeleton, build donation sats mock api
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { ComponentProps, ComponentType, Suspense } from "react";
|
||||
import React, { ComponentProps, ComponentType, ReactNode, Suspense } from "react";
|
||||
import { RotatingLines } from "react-loader-spinner";
|
||||
|
||||
export function random(min: number, max: number) {
|
||||
@@ -85,3 +85,8 @@ export function shuffle<T>(_array: Array<T>) {
|
||||
|
||||
return array;
|
||||
}
|
||||
|
||||
|
||||
export function generateList(component: React.ReactElement, cnt: number) {
|
||||
return Array(cnt).fill(0).map((_, idx) => React.cloneElement(component, { key: idx }))
|
||||
}
|
||||
Reference in New Issue
Block a user