import OTPComponent from "../components/OTP";
// Mock function to replace @storybook/test fn() for Storybook 9.x compatibility
const fn = () => {
    const spy = (...args) => {
        spy.calls.push(args);
        spy.callCount++;
    };
    spy.calls = [];
    spy.callCount = 0;
    return spy;
};
const meta = {
    title: "Input/OTPInputField",
    component: OTPComponent,
};
export default meta;
export const NavBar = {
    args: {
        length: 6,
        error: false,
        isDisable: false,
        onOTPChange: fn(),
        onOTPComplete: (value) => alert(value),
    },
};
