11 lines
254 B
TypeScript
11 lines
254 B
TypeScript
|
import BasicLayout from './basic';
|
||
|
import ScreenLayout from './screen';
|
||
|
|
||
|
const Index = () => {
|
||
|
const { pathname } = useLocation();
|
||
|
|
||
|
return pathname.startsWith(ENV.VITE_LAYOUT_SCREEN[0]) ? <ScreenLayout /> : <BasicLayout />;
|
||
|
};
|
||
|
|
||
|
export default Index;
|