2023-12-18 16:23:45 +03:00
|
|
|
import { forwardRef } from "react";
|
|
|
|
|
|
|
|
import { TabsTrigger } from "@/lib/components/ui/Tabs";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
|
|
|
|
export const StyledTabsTrigger = forwardRef<
|
|
|
|
React.ElementRef<typeof TabsTrigger>,
|
|
|
|
React.ComponentPropsWithoutRef<typeof TabsTrigger>
|
|
|
|
>(({ className, ...props }, ref) => (
|
|
|
|
<TabsTrigger
|
|
|
|
ref={ref}
|
|
|
|
className={cn(
|
2023-12-18 20:02:34 +03:00
|
|
|
"capitalize font-normal",
|
2023-12-18 16:23:45 +03:00
|
|
|
"data-[state=active]:shadow-none",
|
|
|
|
"data-[state=active]:text-primary",
|
2023-12-18 20:02:34 +03:00
|
|
|
"data-[state=active]:font-semibold",
|
2023-12-18 16:23:45 +03:00
|
|
|
className
|
|
|
|
)}
|
|
|
|
{...props}
|
|
|
|
/>
|
|
|
|
));
|
|
|
|
StyledTabsTrigger.displayName = TabsTrigger.displayName;
|