"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToggleButtonTest = void 0;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var react_native_1 = require("react-native");
var react_native_2 = require("@fluentui/react-native");
var react_native_3 = require("@fluentui/react-native");
var styles_1 = require("../Common/styles");
var styles = react_native_1.StyleSheet.create({
    row: {
        flexDirection: 'row',
    },
    checkbox: tslib_1.__assign(tslib_1.__assign({}, styles_1.commonTestStyles.vmargin), { marginHorizontal: 8 }),
});
var ToggleButtonTest = function () {
    var _a = React.useState(false), defaultChecked = _a[0], setDefaultChecked = _a[1];
    var onDefaultClicked = React.useCallback(function () { return setDefaultChecked(!defaultChecked); }, [defaultChecked, setDefaultChecked]);
    var _b = React.useState(false), subtleChecked = _b[0], setSubtleChecked = _b[1];
    var onGhostClicked = React.useCallback(function () { return setSubtleChecked(!subtleChecked); }, [subtleChecked, setSubtleChecked]);
    return (React.createElement(react_native_1.View, { style: styles_1.testContentRootViewStyle },
        React.createElement(react_native_1.View, { style: styles.row },
            React.createElement(react_native_2.ToggleButton, { onClick: onDefaultClicked, checked: defaultChecked, style: styles_1.commonTestStyles.vmargin }, "Default Toggle"),
            React.createElement(react_native_3.Checkbox, { checked: defaultChecked, label: "Default Toggle is Checked", style: styles.checkbox })),
        React.createElement(react_native_2.ToggleButton, { checked: true, style: styles_1.commonTestStyles.vmargin }, "Checked Default Toggle"),
        React.createElement(react_native_2.ToggleButton, { checked: false, style: styles_1.commonTestStyles.vmargin }, "Unchecked Default Toggle"),
        React.createElement(react_native_2.ToggleButton, { appearance: "primary", defaultChecked: true, style: styles_1.commonTestStyles.vmargin }, "Checked Primary Toggle"),
        React.createElement(react_native_2.ToggleButton, { disabled: true, defaultChecked: true, appearance: "primary", style: styles_1.commonTestStyles.vmargin }, "Checked Primary Toggle Disabled"),
        React.createElement(react_native_2.ToggleButton, { appearance: "primary", style: styles_1.commonTestStyles.vmargin }, "Unchecked Primary Toggle"),
        React.createElement(react_native_1.View, { style: styles.row },
            React.createElement(react_native_2.ToggleButton, { appearance: "subtle", onClick: onGhostClicked, checked: subtleChecked, style: styles_1.commonTestStyles.vmargin }, "Subtle Toggle"),
            React.createElement(react_native_3.Checkbox, { checked: subtleChecked, label: "Subtle Toggle is Checked", style: styles.checkbox })),
        React.createElement(react_native_2.ToggleButton, { appearance: "subtle", checked: true, style: styles_1.commonTestStyles.vmargin }, "Checked Subtle Toggle"),
        React.createElement(react_native_2.ToggleButton, { appearance: "subtle", checked: false, style: styles_1.commonTestStyles.vmargin }, "Unchecked Subtle Toggle")));
};
exports.ToggleButtonTest = ToggleButtonTest;
//# sourceMappingURL=ToggleButtonTestSection.js.map