"add chat and delete chat button"
This commit is contained in:
parent
1da5f8e083
commit
18084ebc47
5 changed files with 355 additions and 3 deletions
19
src/components/ui/Button/NewChatButton.jsx
Normal file
19
src/components/ui/Button/NewChatButton.jsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import Button from 'react-bootstrap/Button';
|
||||
import './NewChatButton.css'
|
||||
export default function NewChatButton({ onClick, variant = "outline-light", children, ...props }) {
|
||||
return (
|
||||
<Button onClick={onClick} className="custom-btn" {...props}>
|
||||
{children || "New Chat"}{" "}
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
fill="currentColor"
|
||||
className="bi bi-plus-lg"
|
||||
viewBox="0 0 16 16"
|
||||
>
|
||||
<path fillRule="evenodd" d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2"/>
|
||||
</svg>
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue