26 lines
661 B
TypeScript
26 lines
661 B
TypeScript
import BackIcon from "../icons/BackIcon";
|
|
|
|
type BackButtonProps = {
|
|
onClick?: () => void;
|
|
className?: string;
|
|
title: string;
|
|
};
|
|
|
|
const BackButton = ({ title, onClick, className }: BackButtonProps) => {
|
|
return (
|
|
<button
|
|
onClick={onClick}
|
|
className={`${
|
|
className ? className : ""
|
|
} flex w-fit items-center gap-1 py-[6px] pl-2 pr-4 bg-white rounded-full text-sm font-medium border border-[#C7BDBA] justify-center select-none`}
|
|
>
|
|
<div className="w-5 h-5 flex items-center justify-center">
|
|
<BackIcon className="w-[5px] h-[10px]" />
|
|
</div>
|
|
{title}
|
|
</button>
|
|
);
|
|
};
|
|
|
|
export default BackButton;
|