perplexica/ui/components/MessageActions/Rewrite.tsx

22 lines
520 B
TypeScript
Raw Normal View History

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)}
className="py-2 px-3 text-white/70 rounded-xl hover:bg-[#1c1c1c] transition duration-200 hover:text-white flex flex-row items-center space-x-1"
2024-04-09 10:51:05 +00:00
>
<ArrowLeftRight size={18} />
<p className="text-xs font-medium">Rewrite</p>
2024-04-09 10:51:05 +00:00
</button>
);
};
export default Rewrite;