satupeta-main/app/(modules)/maps/components/sidebar/close-trigger.tsx
2026-02-23 12:21:05 +07:00

17 lines
446 B
TypeScript
Executable File

import { ChevronLeft } from "lucide-react";
type CloseTriggerProps = {
onClose: () => void;
};
export default function CloseTrigger({ onClose }: Readonly<CloseTriggerProps>) {
return (
<button
onClick={onClose}
className="absolute top-2 right-2 w-10 py-2 rounded-full flex items-center justify-center cursor-pointer bg-white hover:bg-none "
>
<ChevronLeft className="h-5 w-5 text-gray-700" />
</button>
);
}