import React from "react"; import { Link } from "react-router-dom"; import ReactCSSTransitionGroup from "react-addons-css-transition-group"; import { Container, Icon, NgIf } from "../../components/"; import { URL_TAGS, URL_FILES } from "../../helpers/"; import Path from "path"; import { t } from "../../locales/"; import "./frequently_access.scss"; export function FrequentlyAccess({ files, tags }) { let showPlaceholder = true; if (files === null || tags === null) showPlaceholder = false; else if (files && files.length > 0) showPlaceholder = false; else if(tags && tags.length > 0) showPlaceholder = false; return (
0}> {t("Quick Access")}
{ files && files.map((path, index) => { return (
{Path.basename(path)}
); }) }
0}> {t("Tag")}
All
{ tags && tags.map((tag, index) => { return (
{tag}
); }) }
{ t("Frequently access folders will be shown here") }
); }