2026-02-17 12:47:39 +05:30
|
|
|
"use client";
|
2026-02-16 15:49:07 +05:30
|
|
|
|
2026-02-20 22:44:56 -08:00
|
|
|
import type * as React from "react";
|
2026-02-16 15:49:07 +05:30
|
|
|
|
2026-02-17 12:47:39 +05:30
|
|
|
import { cn } from "@/lib/utils";
|
2026-02-16 15:49:07 +05:30
|
|
|
|
2026-02-17 12:47:39 +05:30
|
|
|
import { Toolbar } from "./toolbar";
|
2026-02-16 15:49:07 +05:30
|
|
|
|
|
|
|
|
export function FixedToolbar({
|
2026-02-17 12:47:39 +05:30
|
|
|
children,
|
|
|
|
|
className,
|
|
|
|
|
...props
|
2026-02-16 15:49:07 +05:30
|
|
|
}: React.ComponentProps<typeof Toolbar>) {
|
2026-02-17 12:47:39 +05:30
|
|
|
return (
|
|
|
|
|
<Toolbar
|
|
|
|
|
className={cn(
|
2026-03-17 14:16:22 +05:30
|
|
|
"scrollbar-hide sticky top-0 left-0 z-10 w-full justify-between overflow-x-auto border-b bg-background/95 p-1 backdrop-blur supports-backdrop-filter:bg-background/60",
|
2026-02-17 12:47:39 +05:30
|
|
|
className
|
|
|
|
|
)}
|
|
|
|
|
{...props}
|
|
|
|
|
>
|
|
|
|
|
{children}
|
|
|
|
|
</Toolbar>
|
|
|
|
|
);
|
2026-02-16 15:49:07 +05:30
|
|
|
}
|