32 lines
571 B
TypeScript
32 lines
571 B
TypeScript
'use client';
|
|
|
|
import { DangerZone } from '@/ui/DangerZone';
|
|
import React from 'react';
|
|
|
|
interface AdminDangerZonePanelProps {
|
|
title: string;
|
|
description: string;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
/**
|
|
* AdminDangerZonePanel
|
|
*
|
|
* Semantic panel for destructive or dangerous admin actions.
|
|
* Restrained but clear warning styling.
|
|
*/
|
|
export function AdminDangerZonePanel({
|
|
title,
|
|
description,
|
|
children
|
|
}: AdminDangerZonePanelProps) {
|
|
return (
|
|
<DangerZone
|
|
title={title}
|
|
description={description}
|
|
>
|
|
{children}
|
|
</DangerZone>
|
|
);
|
|
}
|