import * as React from "react"; import * as Constants from "~/common/constants"; import * as System from "~/components/system"; import * as SVG from "~/common/svg"; import { css } from "@emotion/react"; import { TabGroup } from "~/components/core/TabGroup"; import ScenePage from "~/components/core/ScenePage"; import ScenePageHeader from "~/components/core/ScenePageHeader"; import Section from "~/components/core/Section"; import SlatePreviewBlock from "~/components/core/SlatePreviewBlock"; import CircleButtonGray from "~/components/core/CircleButtonGray"; import EmptyState from "~/components/core/EmptyState"; const STYLES_NUMBER = css` font-family: ${Constants.font.semiBold}; font-weight: 400; `; // TODO(jim): Slates design. export default class SceneSlates extends React.Component { state = { tab: 0, }; _handleAdd = () => { this.props.onAction({ name: "Create slate", type: "SIDEBAR", value: "SIDEBAR_CREATE_SLATE", }); console.log(this.props.viewer); this.props.onRehydrate(); }; render() { let subscriptions = this.props.viewer.subscriptions .filter((each) => { return !!each.target_slate_id; }) .map((relation) => (