mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
32 lines
652 B
TypeScript
32 lines
652 B
TypeScript
'use server';
|
|
|
|
import { lazy } from 'react';
|
|
|
|
import { saveFile } from '../../server-fns.js';
|
|
|
|
const SaveToLocal = lazy(() =>
|
|
import('./save-to-local.js').then(({ SaveToLocal }) => ({
|
|
default: SaveToLocal,
|
|
}))
|
|
);
|
|
|
|
export const Sidebar = () => {
|
|
return (
|
|
<div
|
|
className="h-screen text-black overflow-y-auto"
|
|
style={{
|
|
backgroundColor: '#f9f7f7',
|
|
}}
|
|
>
|
|
<a href="/">
|
|
<div className="flex items-center justify-center h-16 font-bold">
|
|
AFFiNE
|
|
</div>
|
|
</a>
|
|
{import.meta.env.MODE === 'development' && (
|
|
<SaveToLocal saveFile={saveFile} />
|
|
)}
|
|
</div>
|
|
);
|
|
};
|