2024-04-09 10:51:05 +00:00
|
|
|
import { ArrowLeftRight } from 'lucide-react';
|
|
|
|
|
|
|
|
const Rewrite = ({
|
|
|
|
rewrite,
|
|
|
|
messageId,
|
|
|
|
}: {
|
|
|
|
rewrite: (messageId: string) => void;
|
|
|
|
messageId: string;
|
|
|
|
}) => {
|
|
|
|
return (
|
|
|
|
<button
|
|
|
|
onClick={() => rewrite(messageId)}
|
2024-05-27 03:49:09 +00:00
|
|
|
className="py-2 px-3 text-black/70 dark:text-white/70 rounded-xl hover:bg-light-secondary dark:hover:bg-dark-secondary transition duration-200 hover:text-black dark:hover:text-white flex flex-row items-center space-x-1"
|
2024-04-09 10:51:05 +00:00
|
|
|
>
|
|
|
|
<ArrowLeftRight size={18} />
|
2024-05-18 07:40:54 +00:00
|
|
|
<p className="text-xs font-medium">Rewrite</p>
|
2024-04-09 10:51:05 +00:00
|
|
|
</button>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Rewrite;
|