Something went wrong. Try again.
A beautiful Tangled client with Catppuccin colors. snarled.at
Something went wrong. Try again.
711 B · 26 lines
TSX
at main
123456789101112131415161718192021222324252627import { StringContent } from './StringContent'import type { StringRecord } from '../../lib/tangled/index'
type StringProps = { string: StringRecord}
export function StringView({ string }: StringProps) { const { value } = string
return ( <> {value.description && ( <p className="mb-5 max-w-prose text-base leading-relaxed text-ctp-subtext-1"> {value.description} </p> )}
<pre className="max-w-full overflow-x-auto whitespace-pre-wrap break-words border border-ctp-surface-1 bg-ctp-mantle p-5 font-mono text-sm leading-relaxed text-ctp-text sm:p-6"> <code> <StringContent record={string} /> </code> </pre> </> )}