website refactor

This commit is contained in:
2026-01-18 21:31:08 +01:00
parent 502d4aa092
commit b43a23a48c
96 changed files with 3461 additions and 4067 deletions

View File

@@ -1,17 +1,30 @@
import React from 'react';
import React, { ReactNode } from 'react';
import { Box } from './primitives/Box';
import { Breadcrumbs, BreadcrumbItem } from './Breadcrumbs';
interface BreadcrumbBarProps {
children: React.ReactNode;
className?: string;
export interface BreadcrumbBarProps {
items: BreadcrumbItem[];
actions?: ReactNode;
}
/**
* BreadcrumbBar is a container for breadcrumbs, typically placed at the top of the ContentShell.
*/
export function BreadcrumbBar({ children, className = '' }: BreadcrumbBarProps) {
export const BreadcrumbBar = ({
items,
actions
}: BreadcrumbBarProps) => {
return (
<div className={`mb-6 flex items-center space-x-2 text-sm ${className}`}>
{children}
</div>
<Box
display="flex"
alignItems="center"
justifyContent="between"
paddingY={4}
borderBottom
>
<Breadcrumbs items={items} />
{actions && (
<Box display="flex" alignItems="center" gap={4}>
{actions}
</Box>
)}
</Box>
);
}
};