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
31 lines
750 B
Plaintext
31 lines
750 B
Plaintext
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
import React from 'react';
|
|
import { useSelection } from '../../providers/Selection/index.js';
|
|
import { useTranslation } from '../../providers/Translation/index.js';
|
|
import { Pill } from '../Pill/index.js';
|
|
export const SelectMany = props => {
|
|
const {
|
|
onClick
|
|
} = props;
|
|
const {
|
|
count,
|
|
selected
|
|
} = useSelection();
|
|
const {
|
|
t
|
|
} = useTranslation();
|
|
if (!selected || !count) {
|
|
return null;
|
|
}
|
|
return /*#__PURE__*/_jsxs(Pill, {
|
|
onClick: () => {
|
|
if (typeof onClick === 'function') {
|
|
onClick(selected);
|
|
}
|
|
},
|
|
pillStyle: "white",
|
|
size: "small",
|
|
children: [t('general:select'), " ", count]
|
|
});
|
|
};
|
|
//# sourceMappingURL=index.js.map |