39462-vm/frontend/src/pages/funding_sources/funding_sources-view.tsx
2026-04-04 18:02:49 +00:00

23 lines
832 B
TypeScript

import React, { ReactElement } from 'react';
import LayoutAuthenticated from '../../layouts/Authenticated';
import { fetch } from '../../stores/funding_sources/funding_sourcesSlice';
import EntityRecordViewPage from '../../components/EntityPage/EntityRecordViewPage';
const FundingSourcesView = () => (
<EntityRecordViewPage
singularLabel="Funding Source"
pluralLabel="Funding Sources"
stateKey="funding_sources"
recordKey="funding_sources"
fetchRecord={fetch}
listHref="/funding_sources/funding_sources-list"
editHref={(id) => `/funding_sources/funding_sources-edit/?id=${id ?? ''}`}
/>
);
FundingSourcesView.getLayout = function getLayout(page: ReactElement) {
return <LayoutAuthenticated permission={'READ_FUNDING_SOURCES'}>{page}</LayoutAuthenticated>;
};
export default FundingSourcesView;