mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-16 22:16:49 +01:00
19 lines
543 B
TypeScript
19 lines
543 B
TypeScript
import { Heading } from '../components/Heading';
|
|
import { VStack } from '../components/Stacks';
|
|
import { useWorkspaces } from '../hooks/useWorkspaces';
|
|
import { ButtonLink } from '../components/ButtonLink';
|
|
|
|
export function Workspaces() {
|
|
const workspaces = useWorkspaces();
|
|
return (
|
|
<VStack as="ul" className="p-12">
|
|
<Heading>Workspaces</Heading>
|
|
{workspaces.data?.map((w) => (
|
|
<ButtonLink key={w.id} color="gray" to={`/workspaces/${w.id}`}>
|
|
{w.name}
|
|
</ButtonLink>
|
|
))}
|
|
</VStack>
|
|
);
|
|
}
|