'use client';
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import { getTranslation } from '@payloadcms/translations';
import React from 'react';
import { useTranslation } from '../../../../../providers/Translation/index.js';
export const ArrayCell = ({ cellData, field: { labels } })=>{
    const { i18n } = useTranslation();
    const arrayFields = cellData ?? [];
    const label = arrayFields.length === 1 ? `${arrayFields.length} ${getTranslation(labels?.singular || i18n.t('general:rows'), i18n)}` : `${arrayFields.length} ${getTranslation(labels?.plural || i18n.t('general:rows'), i18n)}`;
    return /*#__PURE__*/ _jsxDEV("span", {
        children: label
    }, void 0, false, {
        fileName: "src/elements/Table/DefaultCell/fields/Array/index.tsx",
        lineNumber: 21,
        columnNumber: 10
    }, this);
};

//# sourceMappingURL=index.js.map