17 lines
478 B
TypeScript
17 lines
478 B
TypeScript
import type { ReactNode } from "react";
|
|
|
|
interface Props {
|
|
children: ReactNode;
|
|
action?: ReactNode;
|
|
}
|
|
|
|
const SidebarSectionHeader = ({ children, action }: Props) => (
|
|
<div className="mb-0.5 flex h-5 min-w-0 items-center justify-between gap-2">
|
|
<span className="min-w-0 truncate ps-2 text-[10px] font-semibold uppercase tracking-[0.09em] text-muted-foreground/55 select-none">
|
|
{children}
|
|
</span>
|
|
{action}
|
|
</div>
|
|
);
|
|
|
|
export default SidebarSectionHeader;
|