-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { useMailDeleteMutation } from '@/api/hooks/useMailReadMutation'; | ||
import DeleteIcon from '@/assets/icons/DeleteIcon.svg'; | ||
import ListIcon from '@/assets/icons/ListIcon.svg'; | ||
import Image from 'next/image'; | ||
|
||
interface ArticleFooterProps { | ||
mailId: string; | ||
} | ||
|
||
const ArticleFooter = ({ mailId }: ArticleFooterProps) => { | ||
const deleteMutation = useMailDeleteMutation(); | ||
|
||
const handleDeleteMail = (mailId: string) => { | ||
deleteMutation.mutate({ mailId }); | ||
}; | ||
return ( | ||
<div className='fixed bottom-0 flex flex-row items-center justify-center w-full h-12 bg-white border-t border-lightgrey'> | ||
<div className='flex flex-row justify-end gap-6 px-6 w-content'> | ||
<span | ||
className='flex items-center justify-center w-6 h-6 cursor-pointer' | ||
onClick={() => handleDeleteMail(mailId)} | ||
> | ||
<Image src={DeleteIcon} alt='delete' width={16} height={24} /> | ||
</span> | ||
<span className='flex items-center justify-center w-6 h-6 cursor-pointer'> | ||
<Image src={ListIcon} alt='list' width={24} height={24} /> | ||
</span> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ArticleFooter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters