- {(noFork || debug) &&
- }
- content="This template is not forked"
- expandContent={<>
-
- Fork original template
-
- {' '}
- to receive the latest fixes and features.
- {' '}
- Additional instructions in
- {' '}
- {readmeAnchor('receiving-updates')}.
+ content={<>
+ Could not analyze source code
+
>}
- />}
- {(forkBehind || debug) && }
- content={<>
- This fork is
- {' '}
-
- {codeMeta?.behindBy ?? DEBUG_BEHIND_BY}
- {' '}
- {(codeMeta?.behindBy ?? DEBUG_BEHIND_BY) === 1
- ? 'commit'
- : 'commits'}
-
- {' '}
- behind
+ />
+ : <>
+ {(noFork || debug) &&
+ }
+ content="This template is not forked"
+ expandContent={<>
+
+ Fork original template
+
+ {' '}
+ to receive the latest fixes and features.
+ {' '}
+ Additional instructions in
+ {' '}
+ {readmeAnchor('receiving-updates')}.
+ >}
+ />}
+ {(forkBehind || debug) && }
+ content={<>
+ This fork is
+ {' '}
+
+ {codeMeta?.behindBy ?? DEBUG_BEHIND_BY}
+ {' '}
+ {(codeMeta?.behindBy ?? DEBUG_BEHIND_BY) === 1
+ ? 'commit'
+ : 'commits'}
+
+ {' '}
+ behind
+ >}
+ expandContent={<>
+
+ Sync your fork
+
+ {' '}
+ to receive the latest fixes and features.
+ >}
+ />}
>}
- expandContent={<>
-
- Sync your fork
-
- {' '}
- to receive the latest fixes and features.
- >}
- />}
}
content={,
-) {
+export default function Tooltip({
+ children,
+ ...rest
+}: Omit, 'children'> & {
+ children?: ReactNode
+}) {
return (
-
+
+ {children ?? }
+
);
}
diff --git a/src/components/primitives/TooltipPrimitive.tsx b/src/components/primitives/TooltipPrimitive.tsx
index f7f37e50..ad88a9cc 100644
--- a/src/components/primitives/TooltipPrimitive.tsx
+++ b/src/components/primitives/TooltipPrimitive.tsx
@@ -10,11 +10,13 @@ import useClickInsideOutside from '@/utility/useClickInsideOutside';
export default function TooltipPrimitive({
content,
className,
+ classNameTrigger,
sideOffset = 10,
children,
}: {
content?: ReactNode
className?: string
+ classNameTrigger?: string
sideOffset?: number
children: ReactNode
}) {
@@ -39,7 +41,7 @@ export default function TooltipPrimitive({