import React from 'react' import styled from 'styled-components' import { tablet, mobile } from '../../../utils/device' import { Icons } from '../../icons' const StyledArticlePinPanel = styled.div` border-top: 1px solid #ECEEF1; height: 56px; display: none; @media ${tablet} { display: block; } @media ${mobile} { display: none; } div { display: flex; align-items: center; cursor: pointer; user-select: none; height: 100%; span { margin-left: 8px; } } `; const ArticlePinPanel = React.memo(props => { //console.log("PageLayout ArticlePinPanel render"); const { pinned, pinText, onPin, unpinText, onUnpin } = props; return ( { pinned ?
{unpinText}
:
{pinText}
}
); }); export default ArticlePinPanel;