import { jsx as _jsx } from "react/jsx-runtime";
import { ConnectTooltipProvider } from "../../tooltip/tooltip.js";
import { Revision } from "./revision.js";
const meta = {
    title: "Connect/Components/Revision History/Revision",
    component: Revision,
};
export default meta;
export const Verified = {
    args: {
        operationIndex: 0,
        eventId: "123",
        type: "revision",
        height: 46,
        stateHash: "wH041NamJQq3AHgk8tD/suXDDI=",
        operationType: "APPROVE_BUDGET",
        operationInput: {
            id: "eByxUvWzZtNOPbdH8JZIZI/beoO-",
            reference: "OC303687",
            label: "Account 1",
            nested: {
                example: "nested",
            },
        },
        address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
        chainId: 1,
        timestampUtcMs: "1719232415114",
        signatures: [
            {
                signerAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                hash: "wH041NamJQq3AHgk8tD/suXDDI=",
                prevStateHash: "wH041NamJQq3AHgk8tD/suXDDI=",
                signatureBytes: "0x1234",
                isVerified: true,
            },
            {
                signerAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                hash: "wH041NamJQq3AHgk8tD/suXDDI=",
                prevStateHash: "wH041NamJQq3AHgk8tD/suXDDI=",
                signatureBytes: "0x1234",
                isVerified: true,
            },
        ],
        errors: [],
    },
    render: (props) => (_jsx(ConnectTooltipProvider, { children: _jsx(Revision, { ...props }) })),
};
export const PartiallyVerified = {
    args: {
        operationIndex: 0,
        eventId: "123",
        type: "revision",
        height: 46,
        stateHash: "wH041NamJQq3AHgk8tD/suXDDI=",
        operationType: "APPROVE_BUDGET",
        operationInput: {
            id: "eByxUvWzZtNOPbdH8JZIZI/beoO-",
            reference: "OC303687",
            label: "Account 1",
            nested: {
                example: "nested",
            },
        },
        address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
        chainId: 1,
        timestampUtcMs: "1719232415114",
        signatures: [
            {
                signerAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                hash: "wH041NamJQq3AHgk8tD/suXDDI=",
                prevStateHash: "wH041NamJQq3AHgk8tD/suXDDI=",
                signatureBytes: "0x1234",
                isVerified: true,
            },
            {
                signerAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                hash: "wH041NamJQq3AHgk8tD/suXDDI=",
                prevStateHash: "wH041NamJQq3AHgk8tD/suXDDI=",
                signatureBytes: "0x1234",
                isVerified: false,
            },
        ],
        errors: ["Data mismatch detected"],
    },
    render: (props) => (_jsx(ConnectTooltipProvider, { children: _jsx(Revision, { ...props }) })),
};
export const NotVerified = {
    args: {
        operationIndex: 0,
        eventId: "123",
        type: "revision",
        height: 46,
        stateHash: "wH041NamJQq3AHgk8tD/suXDDI=",
        operationType: "APPROVE_BUDGET",
        operationInput: {
            id: "eByxUvWzZtNOPbdH8JZIZI/beoO-",
            reference: "OC303687",
            label: "Account 1",
            nested: {
                example: "nested",
            },
        },
        address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
        chainId: 1,
        timestampUtcMs: "1719232415114",
        signatures: [
            {
                signerAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                hash: "wH041NamJQq3AHgk8tD/suXDDI=",
                prevStateHash: "wH041NamJQq3AHgk8tD/suXDDI=",
                signatureBytes: "0x1234",
                isVerified: false,
            },
            {
                signerAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                hash: "wH041NamJQq3AHgk8tD/suXDDI=",
                prevStateHash: "wH041NamJQq3AHgk8tD/suXDDI=",
                signatureBytes: "0x1234",
                isVerified: false,
            },
        ],
        errors: ["Data mismatch detected"],
    },
    render: (props) => (_jsx(ConnectTooltipProvider, { children: _jsx(Revision, { ...props }) })),
};
//# sourceMappingURL=revision.stories.js.map