mirror of
https://github.com/langgenius/dify.git
synced 2026-04-30 15:38:08 +08:00
18 lines
464 B
TypeScript
18 lines
464 B
TypeScript
import type { FC, PropsWithChildren } from 'react'
|
|
import * as React from 'react'
|
|
|
|
type SidebarProps = PropsWithChildren
|
|
|
|
const Sidebar: FC<SidebarProps> = ({ children }) => {
|
|
return (
|
|
<aside
|
|
className="flex w-[320px] shrink-0 flex-col gap-px overflow-hidden rounded-[10px] border border-components-panel-border-subtle bg-components-panel-bg"
|
|
data-component="sidebar"
|
|
>
|
|
{children}
|
|
</aside>
|
|
)
|
|
}
|
|
|
|
export default React.memo(Sidebar)
|