mirror of
https://github.com/hanzoai/gui.git
synced 2026-10-25 02:31:41 +00:00
The store is wired into the header and the home page, so deleting the files that import it removed the site. Those files are back; a HeadAnchor variant is named menu, because gui now has a grid style prop that shadows a variant of that name; and the community page, which imports a component this repository never held, is gone. The store's own files remain until their importers stop importing them.
5 lines
118 B
TypeScript
5 lines
118 B
TypeScript
export function getArray<T>(arrOrObj: T | T[]) {
|
|
if (Array.isArray(arrOrObj)) return arrOrObj
|
|
return [arrOrObj]
|
|
}
|