'use client';
import { useRef } from 'react';
export function ActionDialog({ label = 'Aktionen', title = 'Aktionen', children }) {
const dialogRef = useRef(null);
function openDialog() {
dialogRef.current?.showModal();
}
function closeOnBackdrop(event) {
if (event.target === event.currentTarget) {
event.currentTarget.close();
}
}
return (
<>
{children}
>
);
}