mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-19 00:00:37 +02:00
* k * intermediate unification * many changes * update dark mode configs * updates * decent state * functional * mostly clean * updaet model selector * finalize * calendar update * additional styling * nit * k * update colors * push change * k * update * k * update * address additions * quick nit
26 lines
466 B
TypeScript
26 lines
466 B
TypeScript
"use client";
|
|
|
|
import { FiEdit2 } from "react-icons/fi";
|
|
|
|
export function EditButton({ onClick }: { onClick: () => void }) {
|
|
return (
|
|
<div
|
|
className={`
|
|
my-auto
|
|
flex
|
|
mb-1
|
|
hover:bg-accent-background-hovered
|
|
w-fit
|
|
p-2
|
|
cursor-pointer
|
|
rounded-lg
|
|
border-border
|
|
text-sm`}
|
|
onClick={onClick}
|
|
>
|
|
<FiEdit2 className="mr-1 my-auto" />
|
|
Edit
|
|
</div>
|
|
);
|
|
}
|