/**
* External Dependencies
*/
import { ReactNode } from 'react';
/**
* Internal Dependencies
*/
import sharedStyles from '@givewp/components/AdminDetailsPage/AdminDetailsPage.module.scss';
import ErrorBoundary from './ErrorBoundary';
/**
* @since 4.4.0
*/
interface AdminSectionProps {
title: string;
description: string;
children: ReactNode;
}
/**
* @since 4.4.0
*/
interface AdminSectionFieldProps {
subtitle?: string;
description?: string;
children: ReactNode;
error?: string;
}
/**
* @since 4.13.1 Add description prop
* @since 4.4.0
*/
export function AdminSectionField({ subtitle, description, children, error }: AdminSectionFieldProps) {
return (
{description}{subtitle}
}
{description &&