@ducor/react
Version:
admin template ui interface
8 lines (7 loc) • 423 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Button } from "../components";
const CustomizerButton = ({ label, value, activeValue, onClick, }) => {
const isActive = value === activeValue;
return (_jsx(Button, { round: 'sm', size: 'sm', variant: 'dashed', active: isActive, color: isActive ? "primary" : "default", onClick: () => onClick(value), children: label }));
};
export default CustomizerButton;