GHHG10's picture
download
raw
740 Bytes
import { useTheme } from "../context/theme"
export interface TodoItemProps {
status: string
content: string
}
export function TodoItem(props: TodoItemProps) {
const { theme } = useTheme()
return (
<box flexDirection="row" gap={0}>
<text
flexShrink={0}
style={{
fg: props.status === "in_progress" ? theme.warning : theme.textMuted,
}}
>
[{props.status === "completed" ? "✓" : props.status === "in_progress" ? "•" : " "}]{" "}
</text>
<text
flexGrow={1}
wrapMode="word"
style={{
fg: props.status === "in_progress" ? theme.warning : theme.textMuted,
}}
>
{props.content}
</text>
</box>
)
}

Xet Storage Details

Size:
740 Bytes
·
Xet hash:
30e6c24362cf3c69ea4ca6b2c32a82f01088a2cee9389be7b4fb5183d2ca33f2

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.