UnknownInterface.tsx 673 B

1234567891011121314151617181920212223242526
  1. import Link from 'next/link'
  2. import { Button, cn } from 'ui'
  3. import { Admonition } from 'ui-patterns'
  4. export const UnknownInterface = ({
  5. urlBack,
  6. fullHeight = true,
  7. }: {
  8. urlBack: string
  9. fullHeight?: boolean
  10. }) => {
  11. return (
  12. <div className={cn('w-full flex items-center justify-center', fullHeight && 'h-full')}>
  13. <Admonition
  14. type="note"
  15. className="max-w-xl"
  16. title="Looking for something?"
  17. description="We couldn't find the page that you're looking for"
  18. >
  19. <Button asChild type="default" className="mt-2">
  20. <Link href={urlBack}>Head back</Link>
  21. </Button>
  22. </Admonition>
  23. </div>
  24. )
  25. }