import { cva, type VariantProps } from "class-variance-authority"; import { ChevronLeft, ChevronRight } from "lucide-react"; import { type ComponentProps, forwardRef } from "react"; import { cn } from "../hooks"; import { Button } from "./button"; const navigationVariants = cva(["inline-flex", "items-center", "gap-lg", "bg-bg-primary"], { variants: { size: { sm: [], md: [], lg: [], }, }, defaultVariants: { size: "md", }, }); const navigationTitleVariants = cva(["text-text-primary", "truncate"], { variants: { size: { sm: ["text-uk-sm"], md: ["text-uk-md"], lg: ["text-uk-lg"], }, }, defaultVariants: { size: "md", }, }); const navigationButtonVariants = cva([ "text-icon-primary", "disabled:text-icon-tertiary", "disabled:bg-bg-transparent", ]); interface NavigationProps extends Omit, "title">, VariantProps { title: string; onBack?: () => void; onForward?: () => void; canGoBack?: boolean; canGoForward?: boolean; } const Navigation = forwardRef(function Navigation( { className, title, onBack, onForward, canGoBack = true, canGoForward = true, size, ...props }, ref, ) { return (
{title}
); }); export { Navigation }; export type { NavigationProps };