sozsoft-platform/ui/src/components/shared/PageModeBadge.tsx
2026-10-20 13:53:21 +03:00

18 lines
678 B
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 { useConfig } from '@/components/ui/ConfigProvider'
// Sayfa başlığındaki görünüm/mod rozeti. Badge'in .badge sınıfı katmansız CSS'te sabit kırmızıdır
// (bildirim sayacı) ve utility sınıfları ezemez; renkler tema renginden gelir, sınıflar
// tailwind/index.css'teki @source inline listesinde üretilir.
const PageModeBadge = ({ content }: { content: string }) => {
const { themeColor } = useConfig()
return (
<span
className={`rounded-full px-2 py-0.5 text-xs bg-${themeColor}-100 text-${themeColor}-700 dark:bg-${themeColor}-500/20 dark:text-${themeColor}-300`}
>
{content}
</span>
)
}
export default PageModeBadge