- Added `verifyResourceLifecycle` integration to handle resource lifecycle operations. - Introduced `remove` method in `IResourceRepository` and implemented it in `SequelizeResourceRepository`. - Created `DeleteResourceDialog` component for confirming resource deletion. - Updated `resource.use-cases` to include `remove` and `setActive` methods for managing resource states. - Enhanced API routes to support resource status updates and deletions. - Added tests for resource lifecycle operations, ensuring correct behavior for activation, deactivation, and deletion. - Updated UI components to integrate new deletion functionality and provide feedback on resource status changes. - Improved localization for resource lifecycle actions in both English and Spanish.
24 lines
600 B
TypeScript
24 lines
600 B
TypeScript
import type { ReactNode } from "react";
|
|
|
|
/** Título común para grupos de un diálogo, independiente de su nivel semántico. */
|
|
export function FormSectionTitle({
|
|
children,
|
|
id,
|
|
as: Heading = "h3",
|
|
layout = Heading === "span" ? "inline" : "standalone",
|
|
}: {
|
|
children: ReactNode;
|
|
id?: string;
|
|
as?: "h3" | "h4" | "h5" | "legend" | "span";
|
|
layout?: "standalone" | "inline";
|
|
}) {
|
|
return (
|
|
<Heading
|
|
className={`text-xs font-semibold uppercase tracking-wide text-muted-foreground ${layout === "inline" ? "" : "mb-4"}`}
|
|
id={id}
|
|
>
|
|
{children}
|
|
</Heading>
|
|
);
|
|
}
|