import React from 'react'; import PageContentBlock from '@/components/elements/PageContentBlock'; import { ArrowLeft, RefreshCw } from 'lucide-react'; import { cn } from '@/lib/cn'; import Button from '@/components/elements/Button'; import Icon from '@/components/elements/Icon'; import NotFoundSvg from '@/assets/images/not_found.svg'; import ServerErrorSvg from '@/assets/images/server_error.svg'; interface BaseProps { title: string; image: string; message: string; onRetry?: () => void; onBack?: () => void; } interface PropsWithRetry extends BaseProps { onRetry?: () => void; onBack?: never; } interface PropsWithBack extends BaseProps { onBack?: () => void; onRetry?: never; } export type ScreenBlockProps = PropsWithBack | PropsWithRetry; const ActionButton = ({ className, ...props }: React.ComponentProps) => (