26 lines
513 B
TypeScript
26 lines
513 B
TypeScript
import React from "react";
|
|
|
|
const DropdownMenuItemCustom = ({
|
|
children,
|
|
className = "",
|
|
selected,
|
|
...rest
|
|
}: {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
selected?: boolean;
|
|
} & React.HTMLAttributes<HTMLDivElement>) => {
|
|
return (
|
|
<div
|
|
{...rest}
|
|
className={`dropdown-menu-item-base dropdown-menu-item-custom ${className} ${
|
|
selected ? `dropdown-menu-item--selected` : ``
|
|
}`.trim()}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default DropdownMenuItemCustom;
|