import React from "react";
import { IconWrapper, StyledCell, StyledCheckbox, StyledCheckboxWrapper, Wrapper as ItemWrapper } from "../Inner/ui/Item/Item.styles";
import { Divider, Wrapper, DividerWrapper } from "./SelectAll.styles";
export const SelectAll = ({ variant, selectAllOptions })=>/*#__PURE__*/ React.createElement(Wrapper, {
        variant: variant,
        onClick: selectAllOptions?.onClick,
        sticky: selectAllOptions?.sticky
    }, /*#__PURE__*/ React.createElement(ItemWrapper, {
        variant: variant
    }, /*#__PURE__*/ React.createElement(IconWrapper, {
        variant: variant
    }, /*#__PURE__*/ React.createElement(StyledCheckboxWrapper, {
        onClick: (e)=>e.preventDefault()
    }, /*#__PURE__*/ React.createElement(StyledCheckbox, {
        checked: selectAllOptions?.checked,
        indeterminate: selectAllOptions?.indeterminate,
        appearance: "default"
    }))), /*#__PURE__*/ React.createElement(StyledCell, {
        title: selectAllOptions?.label || 'Выбрать всё'
    })), /*#__PURE__*/ React.createElement(DividerWrapper, null, /*#__PURE__*/ React.createElement(Divider, {
        variant: variant
    })));
