Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

605 B
Raw Blame
import { c } from "ttag";

import { CollectionEmptyIcon } from "metabase/collections/components/CollectionEmptyState/CollectionEmptyState";
import { Flex, Text } from "metabase/ui";

export const CleanupEmptyState = ({ duration }: { duration: string }) => (
  <Flex
    align="center"
    justify="center"
    direction="column"
    style={{ flexGrow: 1 }}
    pt="2rem"
    pb="3rem"
  >
    <CollectionEmptyIcon />
    <Text fw="bold" size="1.25rem" mt="4rem">
      {c("{0} is a duration of time (e.g.: 2 months)")
        .t`All items have been used in the past ${duration}`}
    </Text>
  </Flex>
);