3ba701812b
## Before https://github.com/user-attachments/assets/06a4d6e9-7674-4748-937a-ee3bbe5ccc5a ## After https://github.com/user-attachments/assets/6c2a903b-7720-4fcd-acb9-f106cb05f37b https://github.com/user-attachments/assets/87b1f7dc-457f-48c6-8622-cb49c2ad3c28
24 lines
592 B
TypeScript
24 lines
592 B
TypeScript
import styled from '@emotion/styled';
|
|
import React from 'react';
|
|
|
|
const StyledPanel = styled.div`
|
|
background: ${({ theme }) => theme.background.primary};
|
|
border: 1px solid ${({ theme }) => theme.border.color.medium};
|
|
border-radius: ${({ theme }) => theme.border.radius.md};
|
|
height: 100%;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
`;
|
|
|
|
type PagePanelProps = {
|
|
children: React.ReactNode;
|
|
hasInformationBar?: boolean;
|
|
};
|
|
|
|
export const PagePanel = ({ children }: PagePanelProps) => (
|
|
<StyledPanel>{children}</StyledPanel>
|
|
);
|