Files
users-myfit/src/components/Helpers/SwitchCom.jsx
T
2023-01-30 16:46:25 -05:00

19 lines
458 B
React
Executable File

import React from "react";
export default function SwitchCom({ className, value, handler }) {
return (
<>
<div
onClick={handler}
className={`switch-btn ${
value ? "active" : ""
} w-[44.04px] h-[20.85px] rounded-full cursor-pointer ${
className || ""
}`}
>
<div className="inner-circle w-[17.76px] h-[17.76px] bg-white shadow-md rounded-full"></div>
</div>
</>
);
}