File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
packages/test-case-component/src/components Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,27 @@ export const ShikiComponent: React.FC<{ data: any }> = ({ data }) => {
3333 </ div >
3434 ) ;
3535} ;
36+
37+ const Before = ( { content } : { content : string } ) => {
38+ return < div className = "p-4" dangerouslySetInnerHTML = { { __html : content } } /> ;
39+ } ;
40+
41+ const During = ( { content } : { content : string } ) => {
42+ if ( content ) {
43+ console . log ( "🧄" , content ) ;
44+
45+ return (
46+ < div className = "p-4" dangerouslySetInnerHTML = { { __html : content } } />
47+ ) ;
48+ }
49+ return < > </ > ;
50+ } ;
51+
52+ const After = ( { content } : { content : string } ) => {
53+ return (
54+ < div
55+ className = "flex flex-col gap-y-4 p-4"
56+ dangerouslySetInnerHTML = { { __html : content } }
57+ />
58+ ) ;
59+ } ;
You can’t perform that action at this time.
0 commit comments