// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import type { JSXElement } from "@coreai-ds/react-components";
import * as React from 'react';
import type { CheckboxProps } from "@coreai-ds/react-components";
import { Checkbox } from "@coreai-ds/react-components";

export const Checked = (): JSXElement => {
    const [checked, setChecked] = React.useState<CheckboxProps['checked']>(true);
    return <Checkbox checked={checked} onChange={(ev, data) => setChecked(data.checked)} label="Checked"/>;
};

export default Checked;
