import * as React from "react"; import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"; import { cn, makeDecoratable } from "~/utils.js"; export interface DropdownMenuLabelProps extends React.ComponentPropsWithoutRef< typeof DropdownMenuPrimitive.Label > { text: React.ReactNode; } const DropdownMenuLabelBase = React.forwardRef< React.ElementRef, DropdownMenuLabelProps >(({ className, text, ...props }, ref) => ( {text} )); DropdownMenuLabelBase.displayName = DropdownMenuPrimitive.Label.displayName; export const DropdownMenuLabel = makeDecoratable("DropdownMenuLabel", DropdownMenuLabelBase);