+
+ }
+ rightControls={
+
+ }
+ {...props}
+ >
+
+ }
+ {...props}
+ >
+ {renderItems(
+ isSearchMode ? notSelectedSearch : notSelectedItems,
+ "add",
+ onAdd
+ )}
+
+
}
+ >
+ {renderItems(selectedItems, "remove", onRemove)}
+
+
+
+ );
+};
+
+export const DuellingPicklistComponentAssigned = (
+ props: Partial<
+ DuellingPicklistProps &
+ PicklistProps &
+ PicklistPlaceholderProps &
+ PicklistItemProps
+ >
+) => {
+ const mockData: Item[] = useMemo(() => {
+ const arr = [];
+ for (let i = 0; i < 10; i++) {
+ const data = {
+ key: i.toString(),
+ title: `Content ${i + 1}`,
+ description: `Description ${i + 1}`,
+ };
+ arr.push(data);
+ }
+ return arr;
+ }, []);
+
+ const allItems = useMemo(() => {
+ return mockData.reduce((obj, item) => {
+ obj[item.key] = item;
+ return obj;
+ }, {} as { [key: string]: Item });
+ }, [mockData]);
+
+ const [isEachItemSelected] = useState(false);
+ const [order] = useState(mockData.map(({ key }) => key));
+ const [notSelectedItems, setNotSelectedItems] = useState