Skip to content
Snippets Groups Projects
Commit 5865b242 authored by Dima Rifai's avatar Dima Rifai
Browse files

Issue #433 - Create NoResult Component

parent 94644e15
No related tags found
1 merge request!526Delrifai/#433 add no result component
Pipeline #113818 failed
import { Search } from "lucide-react"; // Importing Lucide React for icons
import React from "react";
interface NoResultsProps {
title?: string;
description?: string;
}
const NoResults: React.FC<NoResultsProps> = ({
title = "No Results Found",
description = "We couldn’t find anything matching your search. Try refining your filters or starting a new search.",
}) => {
return (
<div className="mt-2 flex flex-col items-center justify-center bg-theme p-6 w-full text-center space-y-3">
<div className="flex items-center justify-center w-12 h-12 bg-explorer-bg-start rounded-full">
<Search className="w-6 h-6" />
</div>
<h2 className="text-xl font-semibold">
{title}
</h2>
<p className="text-sm">{description}</p>
</div>
);
};
export default NoResults;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment