import { productComponent } from '../stories.utils';

export default {
   ...productComponent,
   title: "Product/Reviews",
};

export const Rating = {
   parameters: {
      server: {
         id: "Product:Reviews:Rating"
      }
   },
};

export const ReviewsHeader = {
   parameters: {
      server: {
         id: "Product:Reviews:Header"
      }
   },
};

export const ReviewsList = {
   parameters: {
      server: {
         id: "Product:Reviews:Listing"
      }
   },
};

export const CheckForm = {
   parameters: {
      server: {
         id: "Product:Reviews:Forms:CheckForm"
      }
   }
};

export const WriteFormAlreadyRated = {
   parameters: {
      server: {
         id: "Product:Reviews:Forms:WriteForm"
      }
   }
};

export const WriteFormAnonymous = {
   parameters: {
      server: {
         id: "Product:Reviews:Forms:WriteForm"
      }
   },
   args: {
      allowAnonymous: true
   }
};
