Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1import { ReactNode } from "react";
2
3const PickerHeading = ({ children }: { children: ReactNode }) => (
4 <div className="color-picker__heading">{children}</div>
5);
6
7export default PickerHeading;
8

After

1import type { ReactNode } from "react";
2
3const PickerHeading = ({ children }: { children: ReactNode }) => (
4 <div className="color-picker__heading">{children}</div>
5);
6
7export default PickerHeading;
8

Before

program
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "ReactNode"
} "}"
from "from"
string
" "\""
string_fragment "react"
" "\""
; ";"
lexical_declaration (+49 nodes collapsed)
export_statement
export "export"
default "default"
identifier "PickerHeading"
; ";"

After

program
import_statement
import "import"
type "type"
import_clause
named_imports
{ "{"
import_specifier
identifier "ReactNode"
} "}"
from "from"
string
" "\""
string_fragment "react"
" "\""
; ";"
lexical_declaration (+49 nodes collapsed)
export_statement
export "export"
default "default"
identifier "PickerHeading"
; ";"