import * as React from "react"; import { css } from "@emotion/react"; const STYLES_PARAGRAPH = (theme) => css` width: 100%; margin-top: 12px; color: ${theme.fontPreviewDarkMode ? theme.system.white : theme.system.pitchBlack}; padding: 0px 32px 28px; word-break: break-word; white-space: pre-wrap; &:focus { outline: none; } `; const STYLES_TYPE_TO_EDIT = (isFocused) => (theme) => css` ::after { content: " type to edit"; color: ${theme.fontPreviewDarkMode ? theme.system.textGrayDark : theme.system.textGrayLight}; opacity: ${isFocused ? 0 : 1}; } `; const MemoizedChild = React.memo( ({ children }) => { return