# give/4.18.0/src/Subscriptions/resources/admin/components/SubscriptionDetailsPage/Tabs/definitions.tsx

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 34 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Subscriptions/resources/admin/components/SubscriptionDetailsPage/Tabs/definitions.tsx
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Subscriptions/resources/admin/components/SubscriptionDetailsPage/Tabs/definitions.tsx
- Modified: 2025-09-10T13:42:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/Subscriptions/resources/admin/components/SubscriptionDetailsPage/Tabs/definitions.tsx#L10-L20`.

```tsx
import { __ } from '@wordpress/i18n';
import OverviewTab from './Overview';
import DonationsTab from './Donations';
import RecordsTab from './Records';
import { Tab } from '@givewp/components/AdminDetailsPage/types';
import { getSubscriptionOptionsWindowData } from '@givewp/subscriptions/utils';

const { adminUrl } = getSubscriptionOptionsWindowData();
const urlParams = new URLSearchParams(window.location.search);
const subscriptionId = urlParams.get('id');

/**
 * @since 4.8.0
 */
const subscriptionDetailsTabs: Tab[] = [
    {
        id: 'overview',
        title: __('Overview', 'give'),
        content: OverviewTab,
    },
    {
        id: 'donations',
        title: __('Donations', 'give'),
        content: DonationsTab,
    },
    {
        id: 'records',
        title: __('Records', 'give'),
        content: RecordsTab,
    },
];

export default subscriptionDetailsTabs;

```
