import * as React from "react"; import styled from "styled-components"; import CenteredContent from "~/components/CenteredContent"; import Header from "~/components/Header"; import PageTitle from "~/components/PageTitle"; type Props = { icon?: React.ReactNode; title: React.ReactNode; textTitle?: string; children: React.ReactNode; breadcrumb?: React.ReactNode; actions?: React.ReactNode; centered?: boolean; }; function Scene({ title, icon, textTitle, actions, breadcrumb, children, centered, }: Props) { return (
{icon} {title} ) : ( title ) } actions={actions} breadcrumb={breadcrumb} /> {centered !== false ? ( {children} ) : ( children )} ); } const FillWidth = styled.div` width: 100%; `; export default Scene;