aboutsummaryrefslogtreecommitdiff
path: root/apps/extension/content/ui/components/command/Item.tsx
blob: bc9e2aec8340ecdaf8928584d259d97029397a52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from "react";
import { Command } from "cmdk";
import cn from "mxcn";

const CommandItem = React.forwardRef<
	React.ElementRef<typeof Command.Item>,
	React.ComponentPropsWithoutRef<typeof Command.Item>
>(({ className, ...props }, ref) => (
	<Command.Item
		ref={ref}
		className={cn(
			`h-10 px-3 rounded-xl flex items-center gap-3 aria-selected:bg-focus duration-200 hover:cursor-pointer`,
			className,
		)}
		{...props}
	/>
));
CommandItem.displayName = "CommandItem";

export default CommandItem;