'use client';

import { ErrorPageContainer } from '@/ui/ErrorPageContainer';
import { ErrorActionButtons } from '@/ui/ErrorActionButtons';
import { routes } from '@/lib/routing/RouteConfig';
import { useRouter } from 'next/navigation';

export default function Custom500Page() {
  const router = useRouter();
  
  return (
    <ErrorPageContainer
      errorCode="500"
      description="Something went wrong."
    >
      <ErrorActionButtons 
        onHomeClick={() => router.push(routes.public.home)}
        homeLabel="Drive home"
      />
    </ErrorPageContainer>
  );
}