mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
18 lines
582 B
TypeScript
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;
|