nocobase/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx

23 lines
546 B
TypeScript
Raw Normal View History

2024-01-22 07:02:27 +00:00
import React from 'react';
import { Breadcrumb } from 'antd';
import { Link, useParams } from 'react-router-dom';
import { useApp } from '@nocobase/client';
import { lang, NAMESPACE } from '../locale';
export const BreadcumbTitle = () => {
const app = useApp();
const { name } = useParams();
return (
<Breadcrumb
separator=">"
items={[
2024-01-22 13:55:38 +00:00
{ title: <Link to={app.pluginSettingsManager.getRoutePath(NAMESPACE)}>{lang('Data source manager')}</Link> },
2024-01-22 07:02:27 +00:00
{
title: name,
},
]}
/>
);
};