Button.js
2 months ago
Checklist.js
2 months ago
Image.js
2 months ago
Link.js
2 months ago
List.js
2 months ago
Paragraph.js
2 months ago
RenderContent.js
2 months ago
Video.js
2 months ago
Checklist.js
30 lines
| 1 | import { Text } from '@bsf/force-ui'; |
| 2 | import { __, sprintf } from '@wordpress/i18n'; |
| 3 | |
| 4 | const Checklist = ( { items } ) => { |
| 5 | return ( |
| 6 | <div className="space-y-2"> |
| 7 | { items.map( ( item, index ) => ( |
| 8 | <div key={ index } className="flex items-start gap-2"> |
| 9 | <Text |
| 10 | size={ 14 } |
| 11 | weight={ 600 } |
| 12 | color="primary" |
| 13 | className="flex-shrink-0" |
| 14 | > |
| 15 | { sprintf( |
| 16 | __( 'Step %d:', 'presto-player' ), |
| 17 | index + 1 |
| 18 | ) } |
| 19 | </Text> |
| 20 | <Text size={ 14 } color="secondary"> |
| 21 | { item.text } |
| 22 | </Text> |
| 23 | </div> |
| 24 | ) ) } |
| 25 | </div> |
| 26 | ); |
| 27 | }; |
| 28 | |
| 29 | export default Checklist; |
| 30 |