import React from 'react';
import { observer } from 'mobx-react-lite';
import { Divider, ListItemAction } from '@wix/design-system';
import { Add } from '@wix/wix-ui-icons-common';
import { useWixPatternsContainer } from '@wix/bex-core/react';
function _SaveToNewViewFooter({ state, }) {
    const { translate: t } = useWixPatternsContainer();
    const { views: viewsState } = state;
    return (React.createElement("div", { "data-hook": "save-to-new-view-footer" },
        React.createElement(Divider, null),
        React.createElement(ListItemAction, { size: "medium", weight: "thin", dataHook: "save-to-new-view", prefixIcon: React.createElement(Add, null), disabled: viewsState.reachedViewsLimit, onClick: () => {
                viewsState.saveViewModal.open();
                state.table.closeSidePanel();
            }, title: t('cairo.manageView.saveNewView.CTA') })));
}
export const SaveToNewViewFooter = observer(_SaveToNewViewFooter);
//# sourceMappingURL=SaveToNewViewFooter.js.map