import React from 'react' import { Card, Group, Stack, Text, Title } from '@mantine/core' export interface PanelProps { /** Optional panel heading. */ title?: React.ReactNode /** Optional sub-text under the heading. */ description?: React.ReactNode /** Right-aligned header actions. */ actions?: React.ReactNode /** Panel body. */ children: React.ReactNode /** Remove inner padding (e.g. for a flush table). */ noPadding?: boolean } // A bordered content section with an optional titled header. The workhorse // container — group related content into Panels instead of loose Cards. export function Panel({ title, description, actions, children, noPadding }: PanelProps) { return ( {title || actions ? ( {title ? ( {title} ) : null} {description ? ( {description} ) : null} {actions ?
{actions}
: null}
) : null} {children}
) }