diff --git a/src/components/molecules/Breadcrumb.tsx b/src/components/molecules/Breadcrumb.tsx index 184383b..18a9b44 100644 --- a/src/components/molecules/Breadcrumb.tsx +++ b/src/components/molecules/Breadcrumb.tsx @@ -1,12 +1,14 @@ import { Link } from 'react-router-dom' -import { CaretRight, House } from '@phosphor-icons/react' +import { CaretRight, House, X } from '@phosphor-icons/react' import { cn } from '@/lib/utils' import { useNavigationHistory } from '@/hooks/use-navigation-history' import { getPageById } from '@/config/page-loader' import { Flex, IconWrapper } from '@/components/atoms' +import { Button } from '@/components/ui/button' +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip' export function Breadcrumb() { - const { history } = useNavigationHistory() + const { history, clearHistory } = useNavigationHistory() if (history.length === 0) { return null @@ -89,6 +91,27 @@ export function Breadcrumb() { )} + + {history.length > 1 && ( + + + + + + +

Clear history

+
+
+
+ )} )