@activecollab/components
Version:
ActiveCollab Components
47 lines • 2.06 kB
TypeScript
import { ReactElement, ReactNode } from "react";
import { Repository } from "./ConnectRepositoryDialog";
export interface PageHeaderProps {
title: string;
children?: ReactNode;
}
/** Generic page header (title + optional controls), mirrors PageHeader.jsx. */
export declare const PageHeader: {
({ title, children, }: PageHeaderProps): ReactElement;
displayName: string;
};
export interface ProjectOptionsMenuProps {
/** When the `source` module is loaded, show the Repositories section. */
sourceModuleLoaded?: boolean;
/** Repositories already connected to the project when the menu first mounts. */
initialConnectedRepositories?: Repository[];
/**
* Whether the current user can manage the project's repositories. Gates the
* Webhook Logs entry (a manage-only action) — see note 09, Permissions.
*/
canManageProjectRepositories?: boolean;
}
export interface ProjectPageHeaderProps {
title?: string;
/** When the `source` module is loaded, the "..." menu shows a Repositories
* section (connected repositories + Connect Repository). */
sourceModuleLoaded?: boolean;
/** Repositories already connected to the project (seeds the count + submenu). */
initialConnectedRepositories?: Repository[];
/** Whether the current user can manage the project's repositories. */
canManageProjectRepositories?: boolean;
}
/** The project page header: back arrow, title, progress, info, people, options. */
export declare const ProjectPageHeader: {
({ title, sourceModuleLoaded, initialConnectedRepositories, canManageProjectRepositories, }: ProjectPageHeaderProps): ReactElement;
displayName: string;
};
export interface TabHeaderProps {
/** Which view-mode toggle is highlighted as active. */
activeView?: "list" | "column" | "timeline";
}
/** The Tasks/Discussions/… tab bar plus the right-hand view toolbar. */
export declare const TabHeader: {
({ activeView, }: TabHeaderProps): ReactElement;
displayName: string;
};
//# sourceMappingURL=headers.d.ts.map