import { useLocation } from "react-router"; import { requestScopedT as i18nT } from "~/locale/request-scoped-t"; import EmptyState from "./EmptyState"; export default function PreviewEmptyStates() { const currentRoute = useLocation().pathname; return (
alert(i18nT("components.emptyState.preview.clicked"))} captions={{ new: i18nT("components.emptyState.preview.button"), thereAreNo: i18nT("components.emptyState.preview.thereAreNo"), description: i18nT("components.emptyState.preview.description"), }} icon="plus" />
); }