Files
immich-power-tools/src/components/shared/ErrorBlock.tsx
T
Varun Raj ea51071538 refactor: clean up imports and remove unused components
- Removed unused imports and components across various files to streamline the codebase.
- Simplified the structure of components such as AlbumImages, AlbumPeople, and others by eliminating unnecessary dependencies.
- Enhanced overall readability and maintainability of the code.
2025-03-25 22:31:40 +05:30

21 lines
548 B
TypeScript

import React from 'react'
interface ErrorBlockProps {
icon?: React.ReactNode;
title?: string;
description?: string;
action?: React.ReactNode;
}
export default function ErrorBlock(
{ icon, title, description, action }: ErrorBlockProps
) {
return (
<div className="flex flex-col items-center justify-center w-full h-full space-y-4 py-10">
{icon}
{title && <h2 className="text-xl font-semibold">{title}</h2>}
{description && <p className="text-gray-500">{description}</p>}
{action || null}
</div>
)
}