mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
feat: add i18n with type safety
This commit is contained in:
18
inertia/components/layouts/dashboard_layout.tsx
Normal file
18
inertia/components/layouts/dashboard_layout.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user