kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
18 wiersze
280 B
TypeScript
18 wiersze
280 B
TypeScript
![]() |
import { memo } from 'react'
|
||
|
|
||
|
const TitleComponent = ({
|
||
|
title
|
||
|
}: {
|
||
|
title: string
|
||
|
type: string
|
||
|
route: string
|
||
|
}) => {
|
||
|
if (title === 'Guide' || title === 'Documentation') {
|
||
|
return <b>{title}</b>
|
||
|
}
|
||
|
|
||
|
return <span>{title}</span>
|
||
|
}
|
||
|
|
||
|
export default memo(TitleComponent)
|