mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
23 lines
781 B
TypeScript
23 lines
781 B
TypeScript
'use client';
|
|
|
|
import { useTheme } from 'nextra-theme-docs';
|
|
import { useEffect, useState } from 'react';
|
|
|
|
export function TocSponsors() {
|
|
// cmon, i shouldnt have to do this
|
|
const [ resolvedTheme, setTheme ] = useState('dark');
|
|
const { resolvedTheme: actualResolvedTheme } = useTheme();
|
|
useEffect(() => {
|
|
setTheme(actualResolvedTheme ?? 'dark');
|
|
}, [ actualResolvedTheme ]);
|
|
|
|
return <>
|
|
<div>
|
|
<a href='https://rime.ai/?utm_source=pykeio&utm_campaign=ort&utm_medium=docs' target="_blank">
|
|
<img src={`https://cdn.pyke.io/0/pyke:ort-rs/docs@0.0.0/sponsor-identity/rime-${resolvedTheme}.svg`} alt='Rime.ai' suppressHydrationWarning />
|
|
</a>
|
|
<p style={{ color: 'var(--gray-11)', fontSize: '0.7rem' }}>Authentic AI voice models for enterprise.</p>
|
|
</div>
|
|
</>;
|
|
}
|