* fix: wrong direction icon collapse right panel * fix: add back social icon * fix: modal troubleshoot * fix: shadow transparent theme * fix: enable nitro_tensorrt_llm * fix: disabled model dropdown when local server running
29 lines
749 B
TypeScript
29 lines
749 B
TypeScript
import { PropsWithChildren } from 'react'
|
|
|
|
import { useAtomValue } from 'jotai'
|
|
|
|
import { twMerge } from 'tailwind-merge'
|
|
|
|
import { reduceTransparentAtom } from '@/helpers/atoms/Setting.atom'
|
|
|
|
const CenterPanelContainer = ({ children }: PropsWithChildren) => {
|
|
const reduceTransparent = useAtomValue(reduceTransparentAtom)
|
|
return (
|
|
<div
|
|
className={twMerge('flex h-full w-full', !reduceTransparent && 'px-1.5')}
|
|
>
|
|
<div
|
|
className={twMerge(
|
|
'h-full w-full overflow-hidden bg-[hsla(var(--center-panel-bg))]',
|
|
!reduceTransparent &&
|
|
'rounded-lg border border-[hsla(var(--app-border))]'
|
|
)}
|
|
>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default CenterPanelContainer
|