Add @multica/ui workspace dependency with @tailwindcss/vite plugin for CSS processing. Import globals.css for theme and replace template UI with shared Button component. Remove unused template CSS files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
521 B
TypeScript
19 lines
521 B
TypeScript
import { useState } from 'react'
|
|
import { Button } from '@multica/ui/components/button'
|
|
|
|
function App() {
|
|
const [count, setCount] = useState(0)
|
|
|
|
return (
|
|
<div className="flex min-h-screen items-center justify-center">
|
|
<div className="flex flex-col items-center gap-4">
|
|
<h1 className="text-2xl font-bold">Desktop App</h1>
|
|
<Button onClick={() => setCount((count) => count + 1)}>
|
|
count is {count}
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default App
|