mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-18 06:57:11 +01:00
20 lines
630 B
TypeScript
20 lines
630 B
TypeScript
import { ButtonLink } from '../components/ButtonLink';
|
|
import { Heading } from '../components/Heading';
|
|
import { VStack } from '../components/Stacks';
|
|
import { useWorkspaces } from '../hooks/useWorkspaces';
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
export function Workspaces(props: { path: string }) {
|
|
const workspaces = useWorkspaces();
|
|
return (
|
|
<VStack as="ul" className="p-12">
|
|
<Heading>Workspaces</Heading>
|
|
{workspaces.data?.map((w) => (
|
|
<ButtonLink key={w.id} color="gray" href={`/workspaces/${w.id}`}>
|
|
{w.name}
|
|
</ButtonLink>
|
|
))}
|
|
</VStack>
|
|
);
|
|
}
|