The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/views/room/contextualBar/RoomFiles/components/FileItemIcon.stories.js

23 lines
503 B

import React from 'react';
import { select } from '@storybook/addon-knobs';
import FileItemIcon from './FileItemIcon';
export default {
title: 'components/RoomFiles/FileItemIcon',
component: FileItemIcon,
};
const label = 'Type';
const defaultValue = '';
const options = [
'',
'application/vnd.ms-excel',
'audio',
'video',
'application/msword',
'application/x-zip-compressed',
'application/pdf',
];
export const Default = () => <FileItemIcon type={select(label, options, defaultValue)} />;