import React, {Component} from 'react'; import styled from "styled-components"; import _ from "lodash"; import {Button, Intent} from "@blueprintjs/core"; import {Action} from "../components/PageHeader/components/ActionArea"; import Actions from "../Actions/Actions"; import {EntityRenderProps} from "react-entity-plane"; import {FormRenderProps} from "react-final-form"; import EntityActions from "../../layout/EntityActions"; const Container = styled.div` line-height: 100%; border: 1px solid gray; padding: 8px; ` const HeaderContainer = styled.div` display: grid; grid-template-columns: auto 1fr auto; h3 { margin: 8px 0px 16px; } `; const ActionsContainer = styled.div` align-items: center; grid-gap: 4px; ` const ContentContainer = styled.div` ` /*[{ name: 'edit', intent: Intent.PRIMARY, text: 'editar', iconName: 'document', callback: () => null }]*/ export interface PageSectionProps { title: string actions?: Action[] disableActions?: string[] minimalActions?: boolean verticalActions?: boolean entity?: EntityRenderProps form?: FormRenderProps } class PageSection extends Component { render() { return

{this.props.title}

{/**/} {this.props.entity && } {this.props.children} } } export default PageSection;