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;
