mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
26 lines
573 B
TypeScript
26 lines
573 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import {CodeSnippet} from 'sentry/components/codeSnippet';
|
|
import {space} from 'sentry/styles/space';
|
|
|
|
type Props = {
|
|
command: string;
|
|
};
|
|
|
|
function Terminal({command}: Props) {
|
|
return <StyledCodeSnippet language="bash">{command}</StyledCodeSnippet>;
|
|
}
|
|
|
|
export default Terminal;
|
|
|
|
const StyledCodeSnippet = styled(CodeSnippet)`
|
|
padding-left: ${space(2)};
|
|
&:before {
|
|
content: '\u0024';
|
|
position: absolute;
|
|
padding-top: ${space(1)};
|
|
color: var(--prism-comment);
|
|
font-size: ${p => p.theme.codeFontSize};
|
|
}
|
|
`;
|