- Introduced foundational UI components (`Badge`, `LockCard`, `SectionHeader`, `AvatarIcon`, etc.) for flexible layouts and consistent design. - Added migration support with the `MigrationModal` component and backend integration for exporting/importing data between Electron and Tauri. - Extended form components with `TextAreaInput`, `OrderInput`, `ToggleField`, and `ToolbarSelect` for improved input handling. - Updated `ScribeShell` with migration popup logic to prompt users for data migration. - Integrated `AlertStack` for better alert handling and notification management. - Enhanced Rust/Tauri services with migration command implementations. - Added translations and styles for new components.
15 lines
409 B
TypeScript
15 lines
409 B
TypeScript
import React, {ReactNode} from "react";
|
|
|
|
interface InsetPanelProps {
|
|
children: ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export default function InsetPanel({children, className = ''}: InsetPanelProps): React.JSX.Element {
|
|
return (
|
|
<div className={`flex-1 bg-darkest-background rounded-xl m-1 overflow-auto flex flex-col ${className}`}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|