$74 GRAYBYTE WORDPRESS FILE MANAGER $63

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/plugins/give/src/Views/Components/AdminDetailsPage/

HOME
Current File : /home/bravetechrwanda/itiministry.org/plugins/give/src/Views/Components/AdminDetailsPage//types.ts
import React, { FC } from 'react';

/**
 * Interface for controlling UI element visibility
 *
 * @since 4.4.0
 */
export interface Show {
    contextMenu?: boolean;
    confirmationModal?: boolean;
}

/**
 * Props for the AdminDetailsPage component
 *
 * @since 4.4.0
 */
export interface AdminDetailsPageProps<T extends Record<string, any>> {
    /**
     * ID of the object being displayed/edited
     */
    objectId: string | number;

    /**
     * Type of object (e.g., 'donor', 'campaign', etc.)
     */
    objectType: string;

    /**
     * Plural type of object (e.g., 'donors', 'campaigns', etc.)
     */
    objectTypePlural: string;

    /**
     * Hook that provides entity data and methods
     */
    useObjectEntityRecord: (id: string | number) => {
        record: T;
        hasResolved: boolean;
        save: () => any;
        edit: (data: T | Partial<T>) => void;
    };

    /**
     * Function to determine if the form should be saved
     */
    shouldSaveForm?: (isDirty: boolean, data: T) => boolean;

    /**
     * URL for the breadcrumb link
     */
    breadcrumbUrl: string;

    /**
     * Custom title for the breadcrumb (defaults to entity.name)
     */
    breadcrumbTitle?: string;

    /**
     * Custom title for the page header (defaults to entity.name)
     */
    pageTitle?: string | React.ReactNode;

    /**
     * Component to display the status badge
     */
    StatusBadge?: React.ComponentType;

    /**
     * Component to display the primary action button
     */
    PrimaryActionButton?: React.ComponentType<{ isSaving: boolean, formState: any, className: string }>;

    /**
     * Component to display the secondary action button
     */
    SecondaryActionButton?: React.ComponentType<{ className: string }>;

    /**
     * Component to display the context menu items
     */
    ContextMenuItems?: React.ComponentType<{ className: string }>;

    /**
     * Tabs definition for the object
     */
    tabDefinitions: Tab[];

    /**
     * Component to display the children
     */
    children?: React.ReactNode;
}

/**
 * @since 4.4.0
 */
export type Tab = {
    id: string;
    title: string;
} & (
        | { link: string; content?: never; fullwidth?: boolean }
        | { link?: never; content: FC; fullwidth?: boolean }
    );

/**
 * @since 4.4.0
 */
export type Notification = {
    id: string;
    content: string | JSX.Element | Function;
    notificationType?: 'notice' | 'snackbar';
    type?: 'error' | 'warning' | 'info' | 'success';
    isDismissible?: boolean;
    autoHide?: boolean;
    onDismiss?: () => void;
    duration?: number,
}

/**
 * @since 4.4.0
 */
declare module "@wordpress/data" {
    export function select(key: 'givewp/admin-details-page-notifications'): {
        getNotifications(): Notification[],
        getNotificationsByType(type: 'snackbar' | 'notice'): Notification[]
    };

    export function dispatch(key: 'givewp/admin-details-page-notifications'): {
        addSnackbarNotice(notification: Notification): void,
        addNotice(notification: Notification): void,
        dismissNotification(id: string): void
    };
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
ErrorBoundary
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
Icons
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
Notifications
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
Tabs
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
store
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
AdminDetailsPage.module.scss
21.929 KB
18 Nov 2025 7.37 PM
bravetechrwanda / bravetechrwanda
0644
AdminSection.tsx
1.958 KB
18 Nov 2025 7.37 PM
bravetechrwanda / bravetechrwanda
0644
ConfirmationDialog.tsx
2.489 KB
10 Sep 2025 5.42 PM
bravetechrwanda / bravetechrwanda
0644
DefaultPrimaryActionButton.tsx
0.637 KB
18 Jun 2025 7.01 PM
bravetechrwanda / bravetechrwanda
0644
index.tsx
10.215 KB
28 Jan 2026 8.00 PM
bravetechrwanda / bravetechrwanda
0644
types.ts
3.059 KB
1 Oct 2025 3.37 PM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF