Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const MultiSelectTree: FC = () => {
const selection = useTreeItemSelection([], true);
const expansion = useTreeItemExpansion([]);
return (
}
/>
);
};
const MultiSelectTree: FC = () => {
const selection = useTreeItemSelection([], true);
const expansion = useTreeItemExpansion([]);
return (
);
};
const SingleSelectTree: FC = () => {
const selection = useTreeItemSelection([], false);
const expansion = useTreeItemExpansion([]);
return (
}
/>
);
};
const SingleSelectTree: FC = () => {
const selection = useTreeItemSelection([], false);
const expansion = useTreeItemExpansion([]);
return (
);
};
const CustomizingTreeItems: FC = () => {
const selection = useTreeItemSelection([demo.itemId], false);
const expansion = useTreeItemExpansion([
srcFolder.itemId,
publicFolder.itemId,
]);
return (
);