"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToggleButtonTest = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_native_1 = require("react-native");
const react_native_2 = require("@fluentui/react-native");
const react_native_3 = require("@fluentui/react-native");
const styles_1 = require("../Common/styles");
const styles = react_native_1.StyleSheet.create({
    row: {
        flexDirection: 'row',
    },
    checkbox: {
        ...styles_1.commonTestStyles.vmargin,
        marginHorizontal: 8,
    },
});
const ToggleButtonTest = () => {
    const [defaultChecked, setDefaultChecked] = React.useState(false);
    const onDefaultClicked = React.useCallback(() => setDefaultChecked(!defaultChecked), [defaultChecked, setDefaultChecked]);
    const [subtleChecked, setSubtleChecked] = React.useState(false);
    const onGhostClicked = React.useCallback(() => 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