2025-05-29 17:33:04 +08:00
|
|
|
import React from 'react'
|
2025-05-03 13:43:37 +08:00
|
|
|
import { RiArrowLeftLine } from '@remixicon/react'
|
|
|
|
import Button from '../../base/button'
|
2025-05-07 11:30:13 +08:00
|
|
|
import { useTranslation } from 'react-i18next'
|
2025-05-29 17:33:04 +08:00
|
|
|
import Link from 'next/link'
|
2025-05-03 13:43:37 +08:00
|
|
|
|
|
|
|
const Header = () => {
|
2025-05-07 11:30:13 +08:00
|
|
|
const { t } = useTranslation()
|
|
|
|
|
2025-05-03 13:43:37 +08:00
|
|
|
return (
|
2025-05-29 17:33:04 +08:00
|
|
|
<Link
|
|
|
|
className='system-md-semibold relative flex px-16 pb-2 pt-5 text-text-primary'
|
|
|
|
href={'/datasets'}
|
|
|
|
replace
|
|
|
|
>
|
2025-05-29 15:48:54 +08:00
|
|
|
<span>{t('datasetPipeline.creation.title')}</span>
|
|
|
|
<Button
|
|
|
|
variant='secondary-accent'
|
|
|
|
className='absolute bottom-0 left-5 size-9 rounded-full p-0'
|
|
|
|
>
|
|
|
|
<RiArrowLeftLine className='size-5 ' />
|
|
|
|
</Button>
|
2025-05-29 17:33:04 +08:00
|
|
|
</Link>
|
2025-05-03 13:43:37 +08:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default React.memo(Header)
|