mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-09-21 04:46:32 +08:00
25 lines
864 B
TypeScript
25 lines
864 B
TypeScript
"use client";
|
|
|
|
import { ActionBarButtons } from "@/components/editor/action-bar/components/action-bar-buttons";
|
|
import { HorizontalScrollArea } from "@/components/horizontal-scroll-area";
|
|
import { useDialogActions } from "@/hooks/use-dialog-actions";
|
|
|
|
export function ActionBar() {
|
|
const { isCreatingTheme, handleSaveClick, handleShareClick, setCssImportOpen, setCodePanelOpen } =
|
|
useDialogActions();
|
|
|
|
return (
|
|
<div className="border-b">
|
|
<HorizontalScrollArea className="flex h-14 w-full items-center justify-end gap-4 px-4">
|
|
<ActionBarButtons
|
|
onImportClick={() => setCssImportOpen(true)}
|
|
onCodeClick={() => setCodePanelOpen(true)}
|
|
onSaveClick={() => handleSaveClick()}
|
|
isSaving={isCreatingTheme}
|
|
onShareClick={handleShareClick}
|
|
/>
|
|
</HorizontalScrollArea>
|
|
</div>
|
|
);
|
|
}
|