import React from 'react';
import {Meta, StoryFn} from '@storybook/react';
import {AttachmentType} from '@interfaces/attachments';

import {Comment, CommentItemProps} from './index';

const meta: Meta<typeof Comment> = {
  title: 'Custom/Comment',
  component: Comment,
};
const image =
  'https://multimedia.humand.co/images/image--1dde39a5-3b96-47aa-ae90-4b5f8f9c5aed.png-0195a9c8-9fb0-7d8f-b7d4-d6a2b29d6ab5?Expires=1743389376&Key-Pair-Id=K1X1HJKJNJ8CZA&Signature=Ml3QTE81cCw1VsP~xYYH-IJF7Oh2ZCKQvnbIVBck6ZPS6OaLqCdHSN23O482PwNdRUvhWF6wmiB4SmmUwRdvFHsU3BbfigiBmUTs5l3itYiDI9Tgow5SNWRflZJKIlBk8~QegsOxwsymXUZmsqvzxslpSfZet54UN1yzDZvmNmKhIkc3Ytr25i5WBAliuAzjUud0lhqsffo1BN6qC78FL2Bm-JykyfUtuCxr0ts2G4bia~8RJJB5h~kxJqwjSJpdD5Sd8A4IgU4jNMfTKKt8RfkgVbJWaBpUyH6LH~fUuDC-7MFROiVx7DY3hjXxsAGK93W7isCC8QnOZ1IAi7WV-A__';
const Template: StoryFn<CommentItemProps> = args => <Comment {...args} />;

export const Select = Template.bind({});
Select.args = {
  isReply: false,
  firstName: 'John',
  lastName: 'Doe',
  avatar: undefined,
  createAt: '2025-03-22',
  multimediaAttachments: [
    {
      type: AttachmentType.IMAGE,
      url: image, //TODO usar una imagen de humand
      size: '100',
      name: 'image.jpg',
      width: 100,
      height: 100,
    },
    {
      type: AttachmentType.IMAGE,
      url: image,

      size: '100',
      name: 'image.jpg',
      width: 100,
      height: 100,
    },
    {
      type: AttachmentType.IMAGE,
      url: image,
      size: '100',
      name: 'image.jpg',
      width: 100,
      height: 100,
    },
  ],
  comment:
    'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.',
};

export default meta;
