'use client'; import { Button } from '@/components/ui/button/button'; import { cn } from '@/components/ui/core/styling'; import Image from 'next/image'; import { useRouter } from 'next/navigation'; import React from 'react'; interface LuffyErrorProps { children?: React.ReactNode; className?: string; reset?: () => void; title?: string | null; showRefreshButton?: boolean; } export const LuffyError: React.FC = (props) => { const { children, reset, className, title = 'Oops!', showRefreshButton = false, ...rest } = props; const router = useRouter(); return ( <>
{
{''}
}
{!!title &&

{title}

}
{children}
{showRefreshButton && !reset && ( )} {!!reset && ( )}
); };