Move stuff around

This commit is contained in:
Gregory Schier
2023-03-13 23:30:14 -07:00
parent 02574cf5e0
commit a209a486aa
51 changed files with 52 additions and 202 deletions

View File

@@ -0,0 +1,18 @@
import { ButtonLink } from './core/ButtonLink';
import { Heading } from './core/Heading';
import { VStack } from './core/Stacks';
import { useWorkspaces } from '../hooks/useWorkspaces';
export default function Workspaces() {
const workspaces = useWorkspaces();
return (
<VStack as="ul" className="p-12">
<Heading>Workspaces</Heading>
{workspaces.map((w) => (
<ButtonLink key={w.id} color="gray" to={`/workspaces/${w.id}`}>
{w.name}
</ButtonLink>
))}
</VStack>
);
}