Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
34 lines
945 B
Plaintext
34 lines
945 B
Plaintext
'use client';
|
|
|
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
import React from 'react';
|
|
import { ContextFolderFileCard } from '../FolderFileCard/index.js';
|
|
import './index.scss';
|
|
const baseClass = 'item-card-grid';
|
|
export function ItemCardGrid({
|
|
type,
|
|
items,
|
|
subfolderCount,
|
|
title
|
|
}) {
|
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
children: [title && /*#__PURE__*/_jsx("p", {
|
|
className: `${baseClass}__title`,
|
|
children: title
|
|
}), /*#__PURE__*/_jsx("div", {
|
|
className: baseClass,
|
|
children: !items || items?.length === 0 ? null : items.map((item, _index) => {
|
|
const index = _index + (subfolderCount || 0);
|
|
const {
|
|
itemKey
|
|
} = item;
|
|
return /*#__PURE__*/_jsx(ContextFolderFileCard, {
|
|
index: index,
|
|
item: item,
|
|
type: type
|
|
}, itemKey);
|
|
})
|
|
})]
|
|
});
|
|
}
|
|
//# sourceMappingURL=index.js.map |