mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-18 15:06:58 +01:00
16 lines
382 B
TypeScript
16 lines
382 B
TypeScript
import { useWorkspaces } from '../hooks/useWorkspaces';
|
|
import { ButtonLink } from '../components/ButtonLink';
|
|
|
|
export function Workspaces() {
|
|
const workspaces = useWorkspaces();
|
|
return (
|
|
<ul className="p-12">
|
|
{workspaces.data?.map((w) => (
|
|
<ButtonLink key={w.id} to={`/workspaces/${w.id}`}>
|
|
{w.name}
|
|
</ButtonLink>
|
|
))}
|
|
</ul>
|
|
);
|
|
}
|