Files
Michael Ramos 27791a6fba Mobile Phase 2B: Plan shell and navigation (#1303)
* feat(editor): add compact plan navigator

* feat(editor): simplify compact plan chrome

* fix(editor): close compact navigator after file selection

* feat(editor): add compact plan review surfaces

* fix(editor): hold navigator through cold file loads

* fix(editor): preserve desktop diff activation
2026-08-13 09:38:14 -07:00

35 lines
968 B
TypeScript

import React from 'react';
import { Button } from '@plannotator/ui/components/ui/button';
export function FolderAnnotationEmptyState({
compactTouchLayout,
onChooseFile,
}: {
compactTouchLayout: boolean;
onChooseFile: () => void;
}) {
return (
<div className="w-full flex justify-center">
<div className="w-full max-w-3xl p-12 text-center text-muted-foreground">
<p className="text-lg font-medium mb-2">Select a file to annotate</p>
<p className="text-sm">
{compactTouchLayout
? 'Choose a markdown, text, or HTML file to begin.'
: 'Pick a markdown or HTML file from the sidebar to begin.'}
</p>
{compactTouchLayout && (
<Button
type="button"
variant="secondary"
size="sm"
className="mt-4"
onClick={onChooseFile}
>
Choose a file
</Button>
)}
</div>
</div>
);
}