stuff done

This commit is contained in:
2025-03-11 02:54:09 +02:00
parent 58e7ed2f06
commit 516b45fad9
90 changed files with 2950 additions and 9458 deletions

View File

@@ -1,5 +1,7 @@
import {auth} from '@/auth'
import AdminPermission from '@/components/(protected)/admin/auth/permission'
import {CreateForm} from '@/components/(protected)/admin/category/create-form'
import ProductCreateEditForm from '@/components/(protected)/admin/product/create-edit-form'
import {dump} from '@/lib/utils'
export default async function Page({
@@ -12,7 +14,12 @@ export default async function Page({
switch ((slug || [])[0]) {
case 'create':
return <CreateForm />
return (
<>
<AdminPermission />
<CreateForm />
</>
)
}
return <div>{dump(slug)}</div>