ultisuite-client/components/drive/richtext/docs-logo-icon.tsx
R3D347HR4Y 82ca9a27db
Some checks are pending
E2E / Playwright e2e (push) Waiting to run
feat(drive): refactor document and drawing editors with new metadata handling
- Replaced suite page metadata with drive-specific metadata for document and drawing editors.
- Introduced new `driveEditorPageMetadata` function to manage titles and favicons based on editor type.
- Updated layout components for document and drawing editors to utilize the new metadata structure.
- Enhanced document title handling in various editor components to reflect the current editing context.
- Added new SVG icons for UltiDocs, UltiSheets, UltiSlides, and UltiDraw to improve visual consistency across editors.
- Improved print styles and layout handling for better document rendering in print and PDF formats.
2026-06-15 15:51:09 +02:00

30 lines
736 B
TypeScript

import {
DOCS_LOGO_BODY,
DOCS_LOGO_COLOR,
DOCS_LOGO_FOLD,
DOCS_LOGO_FOLD_Y_OFFSET,
DOCS_LOGO_LINE_1,
DOCS_LOGO_LINE_2,
} from "@/lib/drive/docs-logo-paths"
import { cn } from "@/lib/utils"
export function DocsLogoIcon({ className }: { className?: string }) {
return (
<svg
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
className={cn("shrink-0", className)}
aria-hidden
>
<path fill={DOCS_LOGO_COLOR} d={DOCS_LOGO_BODY} />
<path fill="#ffffff" d={DOCS_LOGO_LINE_1} />
<path fill="#ffffff" d={DOCS_LOGO_LINE_2} />
<path
fill="#ffffff"
d={DOCS_LOGO_FOLD}
transform={`translate(0 ${DOCS_LOGO_FOLD_Y_OFFSET})`}
/>
</svg>
)
}