feat(FE-316): Add delete button to ExpandedDrawerForm header

This commit is contained in:
rstubryan
2025-12-27 09:05:12 +07:00
parent 0d77aa4a5f
commit 751c27b73e
@@ -1,5 +1,8 @@
'use client';
import { Icon } from '@iconify/react';
import Button from '@/components/Button';
import Tooltip from '@/components/Tooltip';
import DrawerHeader from '@/components/helper/drawer/DrawerHeader';
import { useUiStore } from '@/stores/ui/ui.store';
@@ -23,7 +26,13 @@ const ExpandedDrawerForm = () => {
subtitle='Add Body Weight'
subtitleClassName='text-sm text-neutral'
showDivider
/>
>
<Button variant='link' className='p-0 text-error' onClick={handleClose}>
<Tooltip content='Hapus' position='bottom'>
<Icon icon='mdi:trash-can-outline' width={20} height={20} />
</Tooltip>
</Button>
</DrawerHeader>
{/* Form Section */}
<div className='divider mt-3'></div>