Files
pterodactyl-panel/resources/scripts/components/admin/AdminContentBlock.tsx
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

18 lines
582 B
TypeScript

import type { PageContentBlockProps } from '@/components/elements/PageContentBlock';
import PageContentBlock from '@/components/elements/PageContentBlock';
import PageHeading from '@/components/elements/PageHeading';
interface Props extends PageContentBlockProps {
heading: string;
description?: string;
}
const AdminContentBlock = ({ heading, description, children, ...props }: Props) => (
<PageContentBlock {...props}>
<PageHeading title={heading} description={description} />
{children}
</PageContentBlock>
);
export default AdminContentBlock;