import React from 'react';
import { useCollectionContext } from '@wix/bex-core/react';
import { TextButton } from '@wix/design-system';
import { Add } from '@wix/wix-ui-icons-common';
export function NewItemButton(props) {
    const state = useCollectionContext();
    const { translate: t } = state;
    const { onClick, text } = props;
    return (React.createElement(TextButton, { onClick: onClick, prefixIcon: React.createElement(Add, null), dataHook: "empty-state-new-item-button" }, text ?? t('cairo.emptyState.additem.cta')));
}
//# sourceMappingURL=NewItemButton.js.map