Skip to content

Commit d8d1c1c

Browse files
committed
Add readOnlyMessage prop to SessionView
1 parent 37a477f commit d8d1c1c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

apps/code/src/renderer/features/sessions/components/SessionView.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ interface SessionViewProps {
5555
onRetry?: () => void;
5656
onNewSession?: () => void;
5757
isInitializing?: boolean;
58+
readOnlyMessage?: string;
5859
slackThreadUrl?: string;
5960
compact?: boolean;
6061
}
@@ -80,6 +81,7 @@ export function SessionView({
8081
onRetry,
8182
onNewSession,
8283
isInitializing = false,
84+
readOnlyMessage,
8385
slackThreadUrl,
8486
compact = false,
8587
}: SessionViewProps) {
@@ -440,6 +442,17 @@ export function SessionView({
440442
/>
441443
</Box>
442444
</Box>
445+
) : readOnlyMessage ? (
446+
<Flex
447+
align="center"
448+
justify="center"
449+
py="2"
450+
className="border-gray-4 border-t"
451+
>
452+
<Text size="2" color="gray">
453+
{readOnlyMessage}
454+
</Text>
455+
</Flex>
443456
) : (
444457
<Box className="relative border-gray-4 border-t">
445458
<Box

0 commit comments

Comments
 (0)