@skbkontur/db-viewer-ui
Version:
Database Viewer with custom configuration
35 lines (34 loc) • 1.17 kB
TypeScript
import { type CSSProperties, type ReactElement, type ReactNode } from "react";
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 }: CommonLayoutHeaderProps) => ReactElement;
var GoBack: ({ to }: CommonLayoutGoBackProps) => ReactElement;
var ContentLoader: (props: ContentLoaderProps) => ReactElement;
}
interface CommonLayoutContentProps {
children?: ReactNode;
className?: void | string;
}
interface CommonLayoutHeaderProps {
title: string | ReactElement;
tools?: ReactElement;
children?: ReactElement;
borderBottom?: boolean;
}
interface CommonLayoutGoBackProps {
to: string;
}
interface ContentLoaderProps {
children?: ReactNode;
active: boolean;
size?: "large";
caption?: string;
}
export {};