snapshot of https://github.com/excalidraw/excalidraw.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Tests / test (push) Failing after 15s
Some checks failed
Tests / test (push) Failing after 15s
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { checkIcon, emptyIcon } from "../icons";
|
||||
|
||||
import DropdownMenuItem from "./DropdownMenuItem";
|
||||
|
||||
import type { DropdownMenuItemProps } from "./DropdownMenuItem";
|
||||
|
||||
const DropdownMenuItemCheckbox = (
|
||||
props: Omit<DropdownMenuItemProps, "icon"> & { checked: boolean },
|
||||
) => {
|
||||
return (
|
||||
<DropdownMenuItem {...props} icon={props.checked ? checkIcon : emptyIcon} />
|
||||
);
|
||||
};
|
||||
|
||||
export default DropdownMenuItemCheckbox;
|
||||
Reference in New Issue
Block a user