import type { FC, ReactNode } from 'react';
import SkeenLayout from './SkeenLayout';
import HomeNestLayout from './HomeNestLayout';
import { useTheme } from '../lib/theme';

interface LayoutProps {
  children: ReactNode;
  title: string;
  subtitle?: string;
}

const Layout: FC<LayoutProps> = (props) => {
  const { theme } = useTheme();
  if (theme === 'homenest') {
    return <HomeNestLayout {...props} />;
  }
  return <SkeenLayout {...props} />;
};

export default Layout;
