From 99a1ae969b106ec7cd207758552468b912291b36 Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:54 +0530 Subject: [PATCH] feat: add model viewer wrapper with shared defaults --- app/components/ui/model-viewer.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/components/ui/model-viewer.tsx diff --git a/app/components/ui/model-viewer.tsx b/app/components/ui/model-viewer.tsx new file mode 100644 index 0000000..2e989b0 --- /dev/null +++ b/app/components/ui/model-viewer.tsx @@ -0,0 +1,19 @@ +import type { ComponentProps } from 'react'; +import { cn } from '~/lib/utils'; + +type ModelViewerProps = ComponentProps<'model-viewer'>; + +// Shared defaults for every in the app; the element itself is loaded in root.tsx +export function ModelViewer({ className, ...props }: ModelViewerProps) { + return ( + + ); +}