import { css } from '@emotion/react';
import { spacing } from '@expo/styleguide-base';
import { TerminalSquareIcon } from '@expo/styleguide-icons';
import { Snippet } from '../Snippet';
import { SnippetContent } from '../SnippetContent';
import { SnippetHeader } from '../SnippetHeader';
import { CopyAction } from '../actions/CopyAction';
import { CODE } from '~/ui/components/Text';
type TerminalProps = {
cmd: string[];
cmdCopy?: string;
hideOverflow?: boolean;
includeMargin?: boolean;
title?: string;
};
export const Terminal = ({
cmd,
cmdCopy,
hideOverflow,
includeMargin = true,
title = 'Terminal',
}: TerminalProps) => (
;
}
if (line.startsWith('#')) {
return (
{line}
);
}
if (line.startsWith('$')) {
return (
-
{line.substring(1).trim()}
{line}
);
}
const wrapperStyle = css`
li & {
margin-top: ${spacing[4]}px;
display: flex;
}
`;