| 1 |
import { __ } from "@wordpress/i18n"; |
| 2 |
import { InputControl, Toggle } from "../../components"; |
| 3 |
|
| 4 |
export const VisibilityTab = ({ attributes, setAttributes }) => { |
| 5 |
const { hideOnDesktop, hideOnTablet, hideOnMobile } = attributes; |
| 6 |
|
| 7 |
return ( |
| 8 |
<div> |
| 9 |
<Toggle |
| 10 |
label={__("Hide on Desktop", "post-carousel")} |
| 11 |
attributes={hideOnDesktop} |
| 12 |
setAttributes={setAttributes} |
| 13 |
attributesKey={"hideOnDesktop"} |
| 14 |
pro={true} |
| 15 |
/> |
| 16 |
<Toggle |
| 17 |
label={__("Hide on Tablet", "post-carousel")} |
| 18 |
attributes={hideOnTablet} |
| 19 |
setAttributes={setAttributes} |
| 20 |
attributesKey={"hideOnTablet"} |
| 21 |
pro={true} |
| 22 |
/> |
| 23 |
<Toggle |
| 24 |
label={__("Hide on Mobile", "post-carousel")} |
| 25 |
attributes={hideOnMobile} |
| 26 |
setAttributes={setAttributes} |
| 27 |
attributesKey={"hideOnMobile"} |
| 28 |
pro={true} |
| 29 |
/> |
| 30 |
</div> |
| 31 |
); |
| 32 |
}; |
| 33 |
|
| 34 |
export const AdvancedTab = ({ attributes, setAttributes }) => { |
| 35 |
const { additionalCssClass } = attributes; |
| 36 |
|
| 37 |
return ( |
| 38 |
<div> |
| 39 |
<InputControl |
| 40 |
label={__("Additional CSS Class(es)", "post-carousel")} |
| 41 |
attributes={additionalCssClass} |
| 42 |
attributesKey={"additionalCssClass"} |
| 43 |
setAttributes={setAttributes} |
| 44 |
flex={false} |
| 45 |
inputType="string" |
| 46 |
/> |
| 47 |
</div> |
| 48 |
); |
| 49 |
}; |
| 50 |
|