UNPKG

@websolutespa/payload-plugin-bowl

Version:

Bowl PayloadCms plugin of the BOM Repository

16 lines (15 loc) 602 B
'use client'; import { jsx as _jsx } from "react/jsx-runtime"; import { useConfig, useRowLabel } from '@payloadcms/ui'; export const LocaleRowLabel = ()=>{ const { config } = useConfig(); const options = config.custom?.bowl; const { data, rowNumber } = useRowLabel(); const index = rowNumber || 0; // const customLabel = `${data.id || options.locales[index]} ${String(index).padStart(2, '0')} ` const customLabel = `${data.id || options.locales[index]}`; return /*#__PURE__*/ _jsx("div", { children: customLabel }); }; //# sourceMappingURL=LocaleRowLabel.js.map