* feat: persist table columns on change Closes #1580 * fix: fix drag-and-select on Table Options dropdown toggle
19 lines
616 B
TypeScript
19 lines
616 B
TypeScript
import { StyledHeaderDropdownButton } from '@/ui/dropdown/components/StyledHeaderDropdownButton';
|
|
import { useDropdownButton } from '@/ui/dropdown/hooks/useDropdownButton';
|
|
import { TableOptionsDropdownId } from '@/ui/table/constants/TableOptionsDropdownId';
|
|
|
|
export const TableOptionsDropdownButton = () => {
|
|
const { isDropdownButtonOpen, toggleDropdownButton } = useDropdownButton({
|
|
dropdownId: TableOptionsDropdownId,
|
|
});
|
|
|
|
return (
|
|
<StyledHeaderDropdownButton
|
|
isUnfolded={isDropdownButtonOpen}
|
|
onClick={toggleDropdownButton}
|
|
>
|
|
Options
|
|
</StyledHeaderDropdownButton>
|
|
);
|
|
};
|