mirror of
https://github.com/nocobase/nocobase
synced 2024-11-17 19:46:42 +00:00
23 lines
546 B
TypeScript
23 lines
546 B
TypeScript
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={[
|
|
{ title: <Link to={app.pluginSettingsManager.getRoutePath(NAMESPACE)}>{lang('Data source manager')}</Link> },
|
|
|
|
{
|
|
title: name,
|
|
},
|
|
]}
|
|
/>
|
|
);
|
|
};
|