2022-12-19 18:26:04 +01:00
|
|
|
import { IconFileDownload } from '@tabler/icons';
|
2022-12-18 21:50:08 +01:00
|
|
|
import { defineWidget } from '../helper';
|
|
|
|
|
import { IWidget } from '../widgets';
|
|
|
|
|
|
|
|
|
|
const definition = defineWidget({
|
2022-12-18 22:58:00 +01:00
|
|
|
id: 'torrents-status',
|
2022-12-18 23:22:45 +01:00
|
|
|
icon: IconFileDownload,
|
2022-12-18 21:50:08 +01:00
|
|
|
options: {},
|
|
|
|
|
gridstack: {
|
|
|
|
|
minWidth: 2,
|
|
|
|
|
minHeight: 2,
|
|
|
|
|
maxWidth: 2,
|
|
|
|
|
maxHeight: 2,
|
|
|
|
|
},
|
|
|
|
|
component: BitTorrentTile,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export type IBitTorrent = IWidget<typeof definition['id'], typeof definition>;
|
|
|
|
|
|
2022-12-19 18:26:04 +01:00
|
|
|
interface BitTorrentTileProps {
|
|
|
|
|
widget: IBitTorrent;
|
2022-12-18 21:50:08 +01:00
|
|
|
}
|
|
|
|
|
|
2022-12-19 18:26:04 +01:00
|
|
|
function BitTorrentTile({ widget }: BitTorrentTileProps) {
|
|
|
|
|
return null;
|
2022-12-18 21:50:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default definition;
|