2025-03-09 10:23:11 +08:00
|
|
|
import { getNews } from '~/apis/common/get-news'
|
2025-02-25 15:45:27 +07:00
|
|
|
import { ContentsPage } from '~/pages/dashboard-contents'
|
|
|
|
|
|
2025-03-07 12:11:48 +08:00
|
|
|
import type { Route } from './+types/_admin.lg-admin._dashboard.contents._index'
|
2025-03-06 09:30:53 +08:00
|
|
|
|
2025-03-09 11:36:47 +08:00
|
|
|
export const loader = async ({}: Route.LoaderArgs) => {
|
|
|
|
|
const { data: newsData } = await getNews()
|
2025-03-06 09:30:53 +08:00
|
|
|
return { newsData }
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-07 12:11:48 +08:00
|
|
|
const DashboardContentsIndexLayout = () => <ContentsPage />
|
|
|
|
|
export default DashboardContentsIndexLayout
|