19 lines
444 B
TypeScript
19 lines
444 B
TypeScript
import type { ReviewStatus } from '@faunosteo/core-wasm/types'
|
|
import Badge from '@/components/ui/Badge'
|
|
import { useT } from '@/i18n/useT'
|
|
|
|
const TONES = {
|
|
to_confirm: 'warn',
|
|
reviewed: 'accent',
|
|
inherited: 'neutral',
|
|
} as const
|
|
|
|
export default function ReviewBadge({ status }: { status: ReviewStatus }) {
|
|
const t = useT()
|
|
return (
|
|
<Badge tone={TONES[status]}>
|
|
{t(`editor.annotations.status.${status}`)}
|
|
</Badge>
|
|
)
|
|
}
|