ToolJet/frontend/src/Editor/CodeBuilder/Elements/FxButton.jsx

15 lines
379 B
React
Raw Normal View History

import React from 'react';
export default function FxButton({ active, onPress, dataCy }) {
return (
2022-03-16 16:42:24 +00:00
<div
title="Use fx for property to have a programmatically determined value instead of a fixed value"
className={`fx-button ${active ? 'active' : ''} unselectable`}
onClick={onPress}
data-cy={`${dataCy}-fx-button`}
2022-03-16 16:42:24 +00:00
>
Fx
</div>
);
}