mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
re-structure to monorepo.
This commit is contained in:
14
packages/webapp/src/components/Utils/Join.tsx
Normal file
14
packages/webapp/src/components/Utils/Join.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
|
||||
export function Join({ items, sep }) {
|
||||
return items.length > 0
|
||||
? items.reduce((result, item) => (
|
||||
<>
|
||||
{result}
|
||||
{sep}
|
||||
{item}
|
||||
</>
|
||||
))
|
||||
: null;
|
||||
}
|
||||
Reference in New Issue
Block a user