import { useTranslation } from 'react-i18next'
import { Anchor, Eye, Users } from 'lucide-react'
import type { LogbookAccessRole } from '../services/logbook.js'
interface LogbookRoleBadgeProps {
role: LogbookAccessRole
className?: string
}
export default function LogbookRoleBadge({ role, className = '' }: LogbookRoleBadgeProps) {
const { t } = useTranslation()
if (role === 'OWNER') {
return (
{t('dashboard.role_owner')}
)
}
if (role === 'READ') {
return (
{t('dashboard.role_read')}
)
}
return (
{t('dashboard.role_crew')}
)
}