import type { ReactNode } from 'react';
import { EcommerceLayout } from '../layouts';

export interface EcommerceTemplateProps {
  header?: ReactNode;
  navigation?: ReactNode;
  sidebar?: ReactNode;
  products?: ReactNode;
  featured?: ReactNode;
  footer?: ReactNode;
}

export function EcommerceTemplate({ 
  header, 
  navigation,
  sidebar, 
  products,
  featured,
  footer
}: EcommerceTemplateProps) {
  return (
    <EcommerceLayout
      header={header}
      navigation={navigation}
      sidebar={sidebar}
      mainContent={
        <>
          {featured}
          {products}
        </>
      }
      footer={footer}
    />
  );
}

