@skbkontur/db-viewer-ui
Version:
Database Viewer with custom configuration
35 lines (34 loc) • 1.4 kB
TypeScript
import React, { CSSProperties } from "react";
interface CommonLayoutProps {
topRightTools?: Nullable<React.ReactElement> | string;
children?: React.ReactNode;
withArrow?: boolean;
style?: CSSProperties;
}
export declare function CommonLayout({ children, topRightTools, withArrow, ...restProps }: CommonLayoutProps): React.ReactElement;
export declare namespace CommonLayout {
var Content: ({ children, ...restProps }: CommonLayoutContentProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
var Header: ({ title, tools, children, borderBottom, }: CommonLayoutHeaderProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
var GoBack: ({ to }: CommonLayoutGoBackProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
var ContentLoader: (props: ContentLoaderProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
}
interface CommonLayoutContentProps {
children?: React.ReactNode;
className?: void | string;
}
interface CommonLayoutHeaderProps {
title: string | React.ReactElement;
tools?: React.ReactElement;
children?: React.ReactElement;
borderBottom?: boolean;
}
interface CommonLayoutGoBackProps {
to: string;
}
interface ContentLoaderProps {
children?: React.ReactNode;
active: boolean;
type?: "big";
caption?: string;
}
export {};