-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #317 from kloudlite/update/logs-metrics
Add no logs and metrics banner when cluster is offline
- Loading branch information
Showing
3 changed files
with
98 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { motion } from 'framer-motion'; | ||
import Pulsable from '~/components/atoms/pulsable'; | ||
import { EmptyState } from '~/console/components/empty-state'; | ||
import { SmileySad } from '~/console/components/icons'; | ||
import Wrapper from '~/console/components/wrapper'; | ||
|
||
export const NoLogsAndMetricsBanner = ({ | ||
title, | ||
description, | ||
}: { | ||
title: string; | ||
description: string; | ||
}) => { | ||
return ( | ||
<motion.div | ||
initial={{ opacity: 0 }} | ||
animate={{ opacity: 1 }} | ||
transition={{ ease: 'anticipate', duration: 0.1 }} | ||
className="flex flex-col py-4xl" | ||
> | ||
<Wrapper> | ||
<Pulsable isLoading={false}> | ||
<EmptyState | ||
{...{ | ||
image: <SmileySad size={48} />, | ||
heading: <span>{title}</span>, | ||
footer: ( | ||
<span className="flex items-center justify-center text-sm"> | ||
{description} | ||
</span> | ||
), | ||
}} | ||
/> | ||
</Pulsable> | ||
</Wrapper> | ||
</motion.div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters