+
+
+ {proposal?.choices.length === 2 && (
+
+ )}
+
+ {proposal && (
+
+ )}
+ {proposal && (
+ <>
+
+
+ >
+ )}
+
+ );
+};
diff --git a/src/pages/proposal/components/AllProposalsLink.tsx b/src/pages/proposal/components/AllProposalsLink.tsx
new file mode 100644
index 0000000..fe1ee1e
--- /dev/null
+++ b/src/pages/proposal/components/AllProposalsLink.tsx
@@ -0,0 +1,24 @@
+import React, { useMemo } from 'react';
+import { useHistory } from 'react-router-dom';
+
+import { BackLinkButton } from '../../../features/ui';
+import { cloneDeep } from 'lodash';
+
+export const AllProposalsLink = () => {
+ const history = useHistory();
+
+ const toAllProposals = useMemo(() => {
+ const pathname = history.location.pathname.replace(
+ /\/proposals\/.*/,
+ '/proposals/',
+ );
+ const state = cloneDeep(history.location.state);
+
+ return {
+ pathname,
+ state,
+ };
+ }, [history]);
+
+ return