13 lines
298 B
TypeScript
13 lines
298 B
TypeScript
|
import { Outlet } from 'react-router-dom';
|
||
|
|
||
|
import { useDocumentTitle } from '../../hooks/use-document-title';
|
||
|
import type { RouteChildProps } from '..';
|
||
|
|
||
|
const GovernanceRouter = ({ name }: RouteChildProps) => {
|
||
|
useDocumentTitle(name);
|
||
|
|
||
|
return <Outlet />;
|
||
|
};
|
||
|
|
||
|
export default GovernanceRouter;
|