7af306792b
* refactor: rename ui/table to ui/data-table * feat: add Table and TableSection components Closes #1806
19 lines
621 B
TypeScript
19 lines
621 B
TypeScript
import { TableOptionsDropdownId } from '@/ui/data-table/constants/TableOptionsDropdownId';
|
|
import { StyledHeaderDropdownButton } from '@/ui/dropdown/components/StyledHeaderDropdownButton';
|
|
import { useDropdownButton } from '@/ui/dropdown/hooks/useDropdownButton';
|
|
|
|
export const TableOptionsDropdownButton = () => {
|
|
const { isDropdownButtonOpen, toggleDropdownButton } = useDropdownButton({
|
|
dropdownId: TableOptionsDropdownId,
|
|
});
|
|
|
|
return (
|
|
<StyledHeaderDropdownButton
|
|
isUnfolded={isDropdownButtonOpen}
|
|
onClick={toggleDropdownButton}
|
|
>
|
|
Options
|
|
</StyledHeaderDropdownButton>
|
|
);
|
|
};
|