23 lines
512 B
TypeScript
23 lines
512 B
TypeScript
import { IconChevronsRight } from 'twenty-ui';
|
|
|
|
import { LightIconButton } from '@/ui/input/button/components/LightIconButton';
|
|
|
|
import { useRightDrawer } from '../hooks/useRightDrawer';
|
|
|
|
export const RightDrawerTopBarCloseButton = () => {
|
|
const { closeRightDrawer } = useRightDrawer();
|
|
|
|
const handleButtonClick = () => {
|
|
closeRightDrawer();
|
|
};
|
|
|
|
return (
|
|
<LightIconButton
|
|
Icon={IconChevronsRight}
|
|
onClick={handleButtonClick}
|
|
size="medium"
|
|
accent="tertiary"
|
|
/>
|
|
);
|
|
};
|