@skbkontur/cassandra-distributed-task-queue-ui
Version:
.NET library implementing distributed task queue machinery using Apache Cassandra
36 lines (35 loc) • 1.23 kB
TypeScript
import type { CSSProperties, ReactElement, ReactNode } from "react";
import { To } from "react-router-dom";
interface CommonLayoutProps {
topRightTools?: Nullable<ReactElement> | string;
children?: ReactNode;
withArrow?: boolean;
style?: CSSProperties;
}
export declare function CommonLayout({ children, topRightTools, withArrow, ...restProps }: CommonLayoutProps): ReactElement;
export declare namespace CommonLayout {
var Content: ({ children, ...restProps }: CommonLayoutContentProps) => ReactElement;
var Header: ({ title, tools, children, borderBottom, ...restProps }: CommonLayoutHeaderProps) => ReactElement;
var GoBack: ({ to }: CommonLayoutGoBackProps) => ReactElement;
var ContentLoader: (props: ContentLoaderProps) => ReactElement;
}
interface CommonLayoutContentProps {
children?: React.ReactNode;
className?: void | string;
}
interface CommonLayoutHeaderProps {
title: string | ReactElement;
tools?: ReactElement | null;
children?: ReactElement;
borderBottom?: boolean;
}
interface CommonLayoutGoBackProps {
to: To;
}
interface ContentLoaderProps {
children?: React.ReactNode;
active: boolean;
type?: "big";
caption?: string;
}
export {};