AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app-content.tsx 598B

12345678910111213141516171819202122
  1. import * as React from 'react';
  2. import { SidebarInset } from '@/components/ui/sidebar';
  3. import type { AppVariant } from '@/types';
  4. type Props = React.ComponentProps<'main'> & {
  5. variant?: AppVariant;
  6. };
  7. export function AppContent({ variant = 'sidebar', children, ...props }: Props) {
  8. if (variant === 'sidebar') {
  9. return <SidebarInset {...props}>{children}</SidebarInset>;
  10. }
  11. return (
  12. <main
  13. className="mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl"
  14. {...props}
  15. >
  16. {children}
  17. </main>
  18. );
  19. }