({command, label}: CommandProps)
| 44 | } |
| 45 | |
| 46 | export function Command({command, label}: CommandProps) { |
| 47 | return ( |
| 48 | <div className={container} data-example-switcher> |
| 49 | <div className={codeWrap}> |
| 50 | {label && ( |
| 51 | <div className={style({font: 'body-sm', marginBottom: 8, color: 'body'})}>{label}</div> |
| 52 | )} |
| 53 | <div className={codeContainer}> |
| 54 | <Prompt styles={iconStyle({size: 'L'})} /> |
| 55 | <pre className={preStyle}>{command}</pre> |
| 56 | <CopyButton ariaLabel="Copy command" tooltip="Copy command" text={command} /> |
| 57 | </div> |
| 58 | </div> |
| 59 | </div> |
| 60 | ); |
| 61 | } |
| 62 | |
| 63 | export default Command; |
nothing calls this directly
no test coverage detected