diff --git a/apps/mobile/src/components/ListPlaceholders/index.js b/apps/mobile/src/components/ListPlaceholders/index.js
index ccec99b45..83008a3dc 100644
--- a/apps/mobile/src/components/ListPlaceholders/index.js
+++ b/apps/mobile/src/components/ListPlaceholders/index.js
@@ -1,961 +1,39 @@
import React from 'react';
-import {Platform, Text, View} from 'react-native';
-import * as Animatable from 'react-native-animatable';
-import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
-import {normalize, SIZE, WEIGHT} from '../../common/common';
-import {deleteItems, opacity, rotate} from '../../utils/animations';
-import {getElevation, hexToRGBA, w} from '../../utils/utils';
-
-export const NotebookPlaceHolder = ({colors, animation}) => {
- const slideRight = {
- 0: {
- transform: [
- {translateX: -2},
- {
- translateY: -2,
- },
- ],
- },
- 0.5: {
- transform: [
- {translateX: 0},
- {
- translateY: 0,
- },
- ],
- },
- 1: {
- transform: [
- {translateX: 2},
- {
- translateY: 2,
- },
- ],
- },
- };
-
- const slideLeft = {
- 0: {
- transform: [
- {translateX: 2},
- {
- translateY: 2,
- },
- ],
- },
- 0.5: {
- transform: [
- {translateX: 0},
- {
- translateY: 0,
- },
- ],
- },
- 1: {
- transform: [
- {translateX: -2},
- {
- translateY: -2,
- },
- ],
- },
+import {View} from 'react-native';
+import {SvgXml} from 'react-native-svg';
+import {
+ NOTE_SVG,
+ NOTEBOOK_SVG,
+ TAG_SVG,
+ FAV_SVG,
+ TRASH_SVG,
+} from '../../assets/images/assets';
+import { useTracked } from '../../provider';
+export const Placeholder = ({type}) => {
+ const [state, dispatch] = useTracked();
+ const {colors} = state;
+ const getSVG = () => {
+ switch (type) {
+ case 'notes':
+ return NOTE_SVG(colors.accent);
+ case 'notebooks':
+ return NOTEBOOK_SVG(colors.accent);
+ case 'tags':
+ return TAG_SVG(colors.accent);
+ case 'favorites':
+ return FAV_SVG(colors.accent);
+ case 'trash':
+ return TRASH_SVG(colors.accent);
+ }
};
return (
-
-
-
-
- My Notebook
-
-
- Keep it orgainzed
-
-
-
-
-
-
-
- My Notebook
-
-
- Keep it orgainzed
-
-
-
-
- );
-};
-
-export const NotesPlaceHolder = ({colors, animation, right, top}) => {
- const slideRight = {
- 0: {
- transform: [
- {translateX: -2},
- {
- translateY: -2,
- },
- ],
- },
- 0.5: {
- transform: [
- {translateX: 0},
- {
- translateY: 0,
- },
- ],
- },
- 1: {
- transform: [
- {translateX: 2},
- {
- translateY: 2,
- },
- ],
- },
- };
-
- const slideLeft = {
- 0: {
- transform: [
- {translateX: 2},
- {
- translateY: 2,
- },
- ],
- },
- 0.5: {
- transform: [
- {translateX: 0},
- {
- translateY: 0,
- },
- ],
- },
- 1: {
- transform: [
- {translateX: -2},
- {
- translateY: -2,
- },
- ],
- },
- };
-
- return (
-
-
-
-
-
- Title
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Title
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-};
-
-export const TrashPlaceHolder = ({colors, animation}) => {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-};
-
-export const FavoritesPlaceHolder = ({colors, animation}) => {
- const slideRight = {
- 0: {
- transform: [
- {scaleX: 0.5},
- {
- scaleY: 0.5,
- },
- {
- translateX: 2,
- },
- {
- translateY: 2,
- },
- ],
- opacity: 0,
- },
- 0.6: {
- transform: [
- {scaleX: 0.7},
- {
- scaleY: 0.7,
- },
- {
- translateX: 0,
- },
- {
- translateY: 0,
- },
- ],
-
- opacity: 1,
- },
- 1: {
- transform: [
- {scaleX: 1},
- {
- scaleY: 1,
- },
- {
- translateX: -2,
- },
- {
- translateY: -2,
- },
- ],
- opacity: 0,
- },
- };
-
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-};
-
-export const TagsPlaceHolder = ({colors, animation}) => {
- const slideRight = {
- 0: {
- transform: [
- {scaleX: 0.8},
- {
- scaleY: 0.8,
- },
- {
- translateX: 2,
- },
- {
- translateY: 2,
- },
- ],
- opacity: 0,
- },
- 0.6: {
- transform: [
- {scaleX: 0.9},
- {
- scaleY: 0.9,
- },
- {
- translateX: 0,
- },
- {
- translateY: 0,
- },
- ],
-
- opacity: 1,
- },
- 1: {
- transform: [
- {scaleX: 1},
- {
- scaleY: 1,
- },
- {
- translateX: -2,
- },
- {
- translateY: -2,
- },
- ],
- opacity: 0,
- },
- };
-
- return (
-
-
-
-
- #presentations
-
-
-
-
-
-
- #morningcoffee
-
-
-
-
-
-
- #quotesonlife
-
-
-
-
-
-
- #workinprogress
-
-
-
-
-
-
- #todolists
-
-
-
-
-
-
- #myschoolwork
-
-
-
+
);
};