18 lines
405 B
TypeScript
18 lines
405 B
TypeScript
import AboutPage from '@/pages-templates/about';
|
|
|
|
import { mainPageApi } from '@/features/pages/api/pages.api';
|
|
|
|
import { makeStore } from '@/shared/store';
|
|
|
|
export default async function About() {
|
|
const store = makeStore();
|
|
|
|
const { data } = await store.dispatch(
|
|
mainPageApi.endpoints.fetchAboutUsPageContent.initiate(),
|
|
);
|
|
|
|
if (!data) return null;
|
|
|
|
return <AboutPage content={data} />;
|
|
}
|