import * as React from "react"; import * as Constants from "~/common/constants"; import * as Styles from "~/common/styles"; import * as System from "~/components/system"; import * as SVG from "~/common/svg"; import { css } from "@emotion/react"; import { GlobalCarousel } from "~/components/system/components/GlobalCarousel"; import { FileTypeGroup } from "~/components/core/FileTypeIcon"; import { TagsOnboarding } from "~/components/core/Onboarding/Tags"; import ScenePage from "~/components/core/ScenePage"; import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper"; import DataView from "~/components/core/DataView"; import EmptyState from "~/components/core/EmptyState"; const STYLES_SCENE_PAGE = css` padding: 0px; @media (max-width: ${Constants.sizes.mobile}px) { padding: 0px; } `; const STYLES_EMPTY_STATE_DEMO = (theme) => css` margin-top: 36px; @media (max-width: ${theme.sizes.mobile}px) { margin-top: 65px; } `; const STYLES_UPLOAD_BUTTON = (theme) => css` ${Styles.CONTAINER_CENTERED}; display: inline-flex; background-color: ${theme.semantic.bgGrayLight}; border-radius: 8px; width: 24px; height: 24px; pointer-events: auto; box-shadow: ${theme.shadow.lightSmall}; `; export default function SceneFilesFolder({ viewer, page, onAction, isMobile }) { const [index, setIndex] = React.useState(-1); let objects = viewer.library; // const tab = page.params?.tab || "grid"; return ( setIndex(index)} /> {objects.length ? (
) : (
Use on the top right corner
or drop files {isMobile ? on desktop : null} to save to Slate
)}
); }