import type { Meta, StoryFn } from '@storybook/vue3-vite';
import { UIIcons } from '@/UI-kit/constants';
import UIBlockSaveImageType1 from '@/UI-blocks/components/BlockSavedImage/Type1/UIBlockSaveImageType1.vue';

export default {
    title: 'UIBlock/UIBlockSaveImageType1',
    component: UIBlockSaveImageType1,
    argTypes: {
        text: {
            control: { type: 'text' },
        },
        previewModalTitle: {
            control: { type: 'text' },
        },
        images: {
            control: { type: 'object' },
        },
    },
    args: {
        text: 'text',
        leftIcon: UIIcons.Car,
        rightIcon: UIIcons.ChevronRight,
    },
} as Meta<typeof UIBlockSaveImageType1>;

export const Default: StoryFn<typeof UIBlockSaveImageType1> = (args) => ({
    components: { UIBlockSaveImageType1 },
    setup() {
        return { args };
    },
    template: `<UIBlockSaveImageType1 v-bind="args" />`,
});
