Allow edition of some document fields

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-08-05 15:33:49 +02:00
parent 0ce98bdba8
commit 1766896b90
7 changed files with 784 additions and 114 deletions

View File

@@ -0,0 +1,17 @@
import { useTranslate } from "@probo/i18n";
import { Option } from "@probo/ui";
import { documentTypes, getDocumentTypeLabel } from "@probo/helpers";
export function DocumentTypeOptions() {
const { __ } = useTranslate();
return (
<>
{documentTypes.map((type) => (
<Option key={type} value={type}>
{getDocumentTypeLabel(__, type)}
</Option>
))}
</>
);
}