mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 03:10:15 +01:00
18 lines
425 B
TypeScript
18 lines
425 B
TypeScript
|
|
import React from 'react';
|
||
|
|
import { CrossIcon, NewTrashIcon } from '~/components/svg';
|
||
|
|
import { Button } from '~/components/ui';
|
||
|
|
|
||
|
|
type DeleteIconButtonProps = {
|
||
|
|
onClick: () => void;
|
||
|
|
};
|
||
|
|
|
||
|
|
export default function DeleteIconButton({ onClick }: DeleteIconButtonProps) {
|
||
|
|
return (
|
||
|
|
<div className="w-fit">
|
||
|
|
<Button className="bg-red-400 p-3" onClick={onClick}>
|
||
|
|
<NewTrashIcon />
|
||
|
|
</Button>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|