/*
* Copyright 2022 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import classNames from "classnames";
import { Component } from "react";
import { ContextMenu, Classes as CoreClasses, Utils as CoreUtils, type Props } from "@blueprintjs/core";
import * as Classes from "../common/classes";
export interface HeaderCellProps extends Props {
children?: React.ReactNode;
/**
* The index of the cell in the header. If provided, this will be passed as an argument to any
* callbacks when they are invoked.
*/
index?: number;
/**
* If `true`, will apply the active class to the header to indicate it is
* part of an external operation.
*/
isActive?: boolean;
/**
* If `true`, the row/column `name` will be replaced with a fixed-height skeleton, and the
* `resizeHandle` will not be rendered. If passing in additional children to this component, you
* will also want to conditionally apply `Classes.SKELETON` where appropriate.
*
* @default false
*/
loading?: boolean;
/**
* The name displayed in the header of the row/column.
*/
name?: string;
/**
* A callback that returns an element, like a `