import * as React from 'react';
import { StyleSheet, View } from 'react-native';
import { ToggleButton } from '@fluentui/react-native';
import { Checkbox } from '@fluentui/react-native';
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
const styles = StyleSheet.create({
    row: {
        flexDirection: 'row',
    },
    checkbox: {
        ...commonTestStyles.vmargin,
        marginHorizontal: 8,
    },
});
export 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(View, { style: testContentRootViewStyle },
        React.createElement(View, { style: styles.row },
            React.createElement(ToggleButton, { onClick: onDefaultClicked, checked: defaultChecked, style: commonTestStyles.vmargin }, "Default Toggle"),
            React.createElement(Checkbox, { checked: defaultChecked, label: "Default Toggle is Checked", style: styles.checkbox })),
        React.createElement(ToggleButton, { checked: true, style: commonTestStyles.vmargin }, "Checked Default Toggle"),
        React.createElement(ToggleButton, { checked: false, style: commonTestStyles.vmargin }, "Unchecked Default Toggle"),
        React.createElement(ToggleButton, { appearance: "primary", defaultChecked: true, style: commonTestStyles.vmargin }, "Checked Primary Toggle"),
        React.createElement(ToggleButton, { disabled: true, defaultChecked: true, appearance: "primary", style: commonTestStyles.vmargin }, "Checked Primary Toggle Disabled"),
        React.createElement(ToggleButton, { appearance: "primary", style: commonTestStyles.vmargin }, "Unchecked Primary Toggle"),
        React.createElement(View, { style: styles.row },
            React.createElement(ToggleButton, { appearance: "subtle", onClick: onGhostClicked, checked: subtleChecked, style: commonTestStyles.vmargin }, "Subtle Toggle"),
            React.createElement(Checkbox, { checked: subtleChecked, label: "Subtle Toggle is Checked", style: styles.checkbox })),
        React.createElement(ToggleButton, { appearance: "subtle", checked: true, style: commonTestStyles.vmargin }, "Checked Subtle Toggle"),
        React.createElement(ToggleButton, { appearance: "subtle", checked: false, style: commonTestStyles.vmargin }, "Unchecked Subtle Toggle")));
};
//# sourceMappingURL=ToggleButtonTestSection.js.map