added tons of features
This commit is contained in:
16
components/shared/sidebar/app-catalog.tsx
Normal file
16
components/shared/sidebar/app-catalog.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
'use server'
|
||||
|
||||
import AppCatalogRender from '@/components/shared/sidebar/app-catalog-render'
|
||||
import {db} from '@/lib/db/prisma/client'
|
||||
|
||||
const appCatalog = async () => {
|
||||
return db.category.findMany({
|
||||
include: {
|
||||
locales: true
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export default async function AppCatalog() {
|
||||
return <AppCatalogRender items={await appCatalog()} />
|
||||
}
|
||||
Reference in New Issue
Block a user