feat: add window controls & screen creation util
This commit is contained in:
parent
96c43fba05
commit
a4822948d1
20 changed files with 149 additions and 61 deletions
19
packages/ui/src/screens/util.tsx
Normal file
19
packages/ui/src/screens/util.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import Controls from "@tensamin/tauri/controls";
|
||||
|
||||
export default function CreateScreen({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<div
|
||||
className="bg-background w-screen h-screen flex flex-col justify-center items-center"
|
||||
data-tauri-drag-region
|
||||
>
|
||||
<>
|
||||
<Controls className="fixed top-0 right-0 m-[7px] mr-[7.6px]! ring-foreground/15" />
|
||||
{children}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue