import React from "react";
import { BrowserRouter, Navigate, Route, Routes, useLocation } from "react-router-dom";
import Media from 'react-media';
import { ComponentTransition, AnimationTypes } from "../../src";
import { Menu } from "./menu";
import { ShowHide } from "./pages/show-hide";
import { Transition } from "./pages/transition";
import { List } from "./pages/list";
export const App = () => {
return (
} />
} />
);
};
export const AppDesktop: React.FC = () => (
);
export const AppMobile: React.FC = () => (
);
const AppRoutes: React.FC<{ isMobile: boolean }> = ({ isMobile }) => {
const location = useLocation();
return (
} />
} />
} />
} />
);
};
const styles: { [index: string]: React.CSSProperties } = {
app: {
padding: "20px",
},
main: {
display: "flex",
width: "80%",
margin: "auto",
},
content: {
padding: "10px 30px",
},
mainPanel: {
overflow: "hidden",
flexGrow: 1,
backgroundColor: "lavender",
boxShadow: "grey -2px 2px 10px",
},
}
const stylesMobile: { [index: string]: React.CSSProperties } = {
...styles,
app: {
...styles.app,
padding: "20px 0",
},
main: {
...styles.main,
flexDirection: "column",
width: "100%",
},
content: {
...styles.content,
padding: "10px",
},
mainPanel: {
...styles.mainPanel,
width: "100%",
},
};