Skip to content
Myr

posture-mark.tsx

This file

Path

apps/web/src/features/project/posture-mark.tsx

25 lines · 845 bytes · TypeScript

Last changed by

Merge redesign into mainoscabrielbefore adoptioncaedd21

History of this file

Take it

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 1–25why, one step back
1import type { Posture } from "@repo/protocol/posture";
23import { POSTURE_MARKS } from "../shared/mark-look.ts";4import { postureLabel, postureWord } from "./posture-label.ts";56/** A project's posture in a list of projects: its mark, its word, and the whole label for a screen reader. */7export const PostureMark = ({ posture }: { readonly posture: Posture }) => {8 const { icon: Icon, tone } = POSTURE_MARKS[posture];910 return (11 <span12 className="text-label text-muted-foreground ml-auto flex shrink-0 items-center gap-1 font-normal"13 data-posture={posture}14 title={postureLabel(posture)}15 >16 <Icon17 aria-hidden="true"18 className={`size-3.5 ${tone}`}19 strokeWidth={1.75}20 />21 {postureWord(posture)}22 <span className="sr-only">: {postureLabel(posture)}</span>23 </span>24 );25};