1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

#35 finally using swiperjs as image slider

This commit is contained in:
Fedor Katurov 2021-03-06 14:48:24 +07:00
parent d3473eab4c
commit 68249a4c62
11 changed files with 202 additions and 29 deletions

View file

@ -0,0 +1,9 @@
import { INode } from '~/redux/types';
import { useMemo } from 'react';
import { UPLOAD_TYPES } from '~/redux/uploads/constants';
export const useNodeAudios = (node: INode) => {
return useMemo(() => node.files.filter(file => file && file.type === UPLOAD_TYPES.AUDIO), [
node.files,
]);
};