'use client';
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import { useTranslation } from '../../../providers/Translation/index.js';
import { useListDrawerContext } from '../../ListDrawer/Provider.js';
import { Pill } from '../../Pill/index.js';
const baseClass = 'list-header';
export function ListDrawerCreateNewDocButton({ hasCreatePermission }) {
    const { DocumentDrawerToggler } = useListDrawerContext();
    const { t } = useTranslation();
    if (!hasCreatePermission) {
        return null;
    }
    return /*#__PURE__*/ _jsxDEV(DocumentDrawerToggler, {
        className: `${baseClass}__create-new-button`,
        children: /*#__PURE__*/ _jsxDEV(Pill, {
            size: "small",
            children: t('general:createNew')
        }, void 0, false, {
            fileName: "src/elements/ListHeader/DrawerTitleActions/ListDrawerCreateNewDocButton.tsx",
            lineNumber: 28,
            columnNumber: 7
        }, this)
    }, "create-new-button-toggler", false, {
        fileName: "src/elements/ListHeader/DrawerTitleActions/ListDrawerCreateNewDocButton.tsx",
        lineNumber: 24,
        columnNumber: 5
    }, this);
}

//# sourceMappingURL=ListDrawerCreateNewDocButton.js.map