| 161 | } |
| 162 | |
| 163 | function ContextMenuRadioItem({ |
| 164 | className, |
| 165 | children, |
| 166 | ...props |
| 167 | }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>) { |
| 168 | return ( |
| 169 | <ContextMenuPrimitive.RadioItem |
| 170 | data-slot="context-menu-radio-item" |
| 171 | className={cn( |
| 172 | "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", |
| 173 | className |
| 174 | )} |
| 175 | {...props} |
| 176 | > |
| 177 | <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center"> |
| 178 | <ContextMenuPrimitive.ItemIndicator> |
| 179 | <CircleIcon className="size-2 fill-current" /> |
| 180 | </ContextMenuPrimitive.ItemIndicator> |
| 181 | </span> |
| 182 | {children} |
| 183 | </ContextMenuPrimitive.RadioItem> |
| 184 | ) |
| 185 | } |
| 186 | |
| 187 | function ContextMenuLabel({ |
| 188 | className, |