mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 23:15:36 +00:00
19 lines
474 B
TypeScript
19 lines
474 B
TypeScript
import styled from '@emotion/styled';
|
|
import { ReactNode } from 'react';
|
|
import BaseLayout from './_base_layout';
|
|
|
|
const DashboardLayoutStyle = styled.div(({ theme }) => ({
|
|
height: 'auto',
|
|
width: theme.media.small_desktop,
|
|
maxWidth: '100%',
|
|
padding: '0.75em 1em',
|
|
}));
|
|
|
|
const DashboardLayout = ({ children }: { children: ReactNode }) => (
|
|
<BaseLayout>
|
|
<DashboardLayoutStyle>{children}</DashboardLayoutStyle>
|
|
</BaseLayout>
|
|
);
|
|
|
|
export default DashboardLayout;
|