2022-05-14 10:10:58 +02:00
|
|
|
import { SimpleGrid } from '@mantine/core';
|
2022-05-23 14:23:05 +02:00
|
|
|
import AppShelf from './AppShelf';
|
|
|
|
|
import { AppShelfItem } from './AppShelfItem';
|
2022-04-26 00:14:42 +02:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
title: 'Item Shelf',
|
2022-05-04 07:12:22 +02:00
|
|
|
component: AppShelf,
|
|
|
|
|
args: {
|
|
|
|
|
service: {
|
|
|
|
|
name: 'qBittorrent',
|
|
|
|
|
url: 'http://',
|
|
|
|
|
icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/qBittorrent/icon.png',
|
|
|
|
|
type: 'qBittorrent',
|
|
|
|
|
apiKey: '',
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-04-26 00:14:42 +02:00
|
|
|
};
|
|
|
|
|
|
2022-04-30 21:51:37 +02:00
|
|
|
export const Default = (args: any) => <AppShelf {...args} />;
|
2022-05-04 07:30:06 +02:00
|
|
|
export const One = (args: any) => <AppShelfItem {...args} />;
|
2022-05-14 10:10:58 +02:00
|
|
|
export const Ten = (args: any) => (
|
|
|
|
|
<SimpleGrid>
|
|
|
|
|
{Array.from(Array(10)).map((_, i) => (
|
|
|
|
|
<AppShelfItem {...args} key={i} />
|
|
|
|
|
))}
|
|
|
|
|
</SimpleGrid>
|
|
|
|
|
);
|