Files
Stirling-PDF/frontend/src/components/tools/shared/FileStatusIndicator.tsx
T
4c17c520d7 V2 results flow (#4196)
Better tool flow for reusability
Pinning 
Styling of tool flow
consumption of files after tooling

---------

Co-authored-by: Connor Yoh <[email protected]>
Co-authored-by: James Brunton <[email protected]>
2025-08-15 14:43:30 +01:00

27 lines
599 B
TypeScript

import React from 'react';
import { Text } from '@mantine/core';
export interface FileStatusIndicatorProps {
selectedFiles?: File[];
placeholder?: string;
}
const FileStatusIndicator = ({
selectedFiles = [],
placeholder = "Select a PDF file in the main view to get started"
}: FileStatusIndicatorProps) => {
// Only show content when no files are selected
if (selectedFiles.length === 0) {
return (
<Text size="sm" c="dimmed">
{placeholder}
</Text>
);
}
// Return nothing when files are selected
return null;
}
export default FileStatusIndicator;