ar-design
Version:
AR Design is a (react | nextjs) ui library.
32 lines (31 loc) • 996 B
TypeScript
import React, { Dispatch, MutableRefObject, SetStateAction } from "react";
import { TableColumnType } from "../../../libs/types";
import { Config, Sort } from "./IProps";
interface IProps<T extends object> {
refs: {
tableContent: MutableRefObject<HTMLDivElement | null>;
buttons: MutableRefObject<(HTMLSpanElement | null)[]>;
};
states: {
open: {
get: boolean;
set: Dispatch<SetStateAction<boolean>>;
};
sort: {
get: Sort<T>[];
set: Dispatch<SetStateAction<Sort<T>[]>>;
currentColumn: TableColumnType<T> | null;
};
};
methods: {
handleScroll: () => void;
};
coordinate: {
x: number;
y: number;
};
config: Config<T>;
}
declare function PropertiesPopup<T extends object>({ refs, states, methods, coordinate, config }: IProps<T>): false | React.ReactPortal;
declare const _default: typeof PropertiesPopup;
export default _default;