mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-28 07:34:56 +00:00
37 lines
876 B
TypeScript
37 lines
876 B
TypeScript
import { CheckCircle, Lightning } from '@phosphor-icons/react'
|
|
import { EmptyState } from '@/components/atoms'
|
|
|
|
interface ErrorPanelEmptyStateProps {
|
|
isScanning: boolean
|
|
noIssuesTitle: string
|
|
noIssuesDescription: string
|
|
scanningTitle: string
|
|
scanningDescription: string
|
|
}
|
|
|
|
export function ErrorPanelEmptyState({
|
|
isScanning,
|
|
noIssuesTitle,
|
|
noIssuesDescription,
|
|
scanningTitle,
|
|
scanningDescription,
|
|
}: ErrorPanelEmptyStateProps) {
|
|
if (isScanning) {
|
|
return (
|
|
<EmptyState
|
|
icon={<Lightning size={48} weight="duotone" className="text-accent animate-pulse" />}
|
|
title={scanningTitle}
|
|
description={scanningDescription}
|
|
/>
|
|
)
|
|
}
|
|
|
|
return (
|
|
<EmptyState
|
|
icon={<CheckCircle size={48} weight="duotone" className="text-green-500" />}
|
|
title={noIssuesTitle}
|
|
description={noIssuesDescription}
|
|
/>
|
|
)
|
|
}
|