feat: add TextView component to media panel

This commit is contained in:
Maze Winther
2025-07-03 22:07:33 +02:00
parent 1372c218ad
commit 434a832d8e
2 changed files with 11 additions and 3 deletions

View File

@ -3,6 +3,7 @@
import { TabBar } from "./tabbar";
import { MediaView } from "./views/media";
import { useMediaPanelStore, Tab } from "./store";
import { TextView } from "./views/text";
export function MediaPanel() {
const { activeTab } = useMediaPanelStore();
@ -12,9 +13,7 @@ export function MediaPanel() {
audio: (
<div className="p-4 text-muted-foreground">Audio view coming soon...</div>
),
text: (
<div className="p-4 text-muted-foreground">Text view coming soon...</div>
),
text: <TextView />,
stickers: (
<div className="p-4 text-muted-foreground">
Stickers view coming soon...

View File

@ -0,0 +1,9 @@
export function TextView() {
return (
<div className="p-4">
<div className="p-3 bg-accent/50 rounded-lg flex items-center justify-center size-24">
<span className="text-xs">Default text</span>
</div>
</div>
);
}