21 lines
488 B
TypeScript
21 lines
488 B
TypeScript
|
|
import React from 'react';
|
||
|
|
import { Box, Text } from 'ink';
|
||
|
|
|
||
|
|
interface FooterProps {
|
||
|
|
queryLength: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
const Footer: React.FC<FooterProps> = ({ queryLength }) => {
|
||
|
|
return (
|
||
|
|
<Box marginTop={1} justifyContent="space-between">
|
||
|
|
<Box minWidth={15}>
|
||
|
|
<Text color="gray">
|
||
|
|
{queryLength === 0 ? "? for shortcuts" : ""}
|
||
|
|
</Text>
|
||
|
|
</Box>
|
||
|
|
<Text color="blue">Gemini</Text>
|
||
|
|
</Box>
|
||
|
|
);
|
||
|
|
};
|
||
|
|
|
||
|
|
export default Footer;
|