bible-strong-avatar-lab/src/features/studio/components/StudioIdentity.tsx
smontlouis a057d880e0 feat(studio): refine preview branding
Use flag-only language controls and add the creator credit beneath Photo Mode.
2026-08-13 20:14:26 +02:00

58 lines
1.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Code2 } from 'lucide-react'
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@/components/ui/select'
import type { StudioController } from '@/features/studio/useStudioController'
import { type StudioLanguage } from '@/i18n'
type StudioIdentityProps = Pick<StudioController, 'language' | 'setLanguage' | 't'> & {
className?: string
}
export function StudioIdentity({ className = '', language, setLanguage, t }: StudioIdentityProps) {
return (
<div className={`studio-identity ${className}`.trim()}>
<div className="brand">
<span className="brand-mark" />
Bible Strong <em>Avatar Lab</em>
</div>
<div className="language-picker">
<a
className="source-link"
href="https://github.com/smontlouis/bible-strong-avatar-lab"
target="_blank"
rel="noreferrer"
aria-label="GitHub"
>
<Code2 aria-hidden="true" />
<span>GitHub</span>
</a>
<span className="identity-divider" aria-hidden="true" />
<Select
value={language}
items={[
{ value: 'en', label: '🇬🇧' },
{ value: 'fr', label: '🇫🇷' },
{ value: 'zh-CN', label: '🇨🇳' },
]}
onValueChange={next => next && setLanguage(next as StudioLanguage)}
>
<SelectTrigger aria-label={t('Langue de l’interface')}>
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectItem value="en">🇬🇧</SelectItem>
<SelectItem value="fr">🇫🇷</SelectItem>
<SelectItem value="zh-CN">🇨🇳</SelectItem>
</SelectContent>
</Select>
</div>
</div>
)
}