import * as React from "react"; import * as SVG from "~/common/svg"; import * as Events from "~/common/custom-events"; import { css } from "@emotion/react"; import { PrimaryTabGroup, SecondaryTabGroup } from "~/components/core/TabGroup"; import { ButtonSecondary } from "~/components/system/components/Buttons"; import { FileTypeGroup } from "~/components/core/FileTypeIcon"; import ScenePage from "~/components/core/ScenePage"; import ScenePageHeader from "~/components/core/ScenePageHeader"; import SlatePreviewBlocks from "~/components/core/SlatePreviewBlock"; import CircleButtonGray from "~/components/core/CircleButtonGray"; import EmptyState from "~/components/core/EmptyState"; // TODO(jim): Slates design. export default class SceneSlates extends React.Component { _handleAdd = () => { this.props.onAction({ name: "Create slate", type: "SIDEBAR", value: "SIDEBAR_CREATE_SLATE", }); }; _handleSearch = () => { Events.dispatchCustomEvent({ name: "show-search", detail: {}, }); }; render() { let subscriptions = this.props.viewer.subscriptions .filter((each) => { return !!each.target_slate_id; }) .map((relation) => relation.slate); return ( } actions={
} /> {/* ) : null } /> */} {this.props.tab === 0 ? ( this.props.viewer.slates && this.props.viewer.slates.length ? ( ) : (
Use slates to create mood boards, share files, and organize research.
Create slate
) ) : null} {this.props.tab === 1 ? ( subscriptions && subscriptions.length ? ( ) : ( You can follow any public slates on the network. Browse slates ) ) : null}
); } }