feat: add TextView component to media panel
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
import { TabBar } from "./tabbar";
|
import { TabBar } from "./tabbar";
|
||||||
import { MediaView } from "./views/media";
|
import { MediaView } from "./views/media";
|
||||||
import { useMediaPanelStore, Tab } from "./store";
|
import { useMediaPanelStore, Tab } from "./store";
|
||||||
|
import { TextView } from "./views/text";
|
||||||
|
|
||||||
export function MediaPanel() {
|
export function MediaPanel() {
|
||||||
const { activeTab } = useMediaPanelStore();
|
const { activeTab } = useMediaPanelStore();
|
||||||
@ -12,9 +13,7 @@ export function MediaPanel() {
|
|||||||
audio: (
|
audio: (
|
||||||
<div className="p-4 text-muted-foreground">Audio view coming soon...</div>
|
<div className="p-4 text-muted-foreground">Audio view coming soon...</div>
|
||||||
),
|
),
|
||||||
text: (
|
text: <TextView />,
|
||||||
<div className="p-4 text-muted-foreground">Text view coming soon...</div>
|
|
||||||
),
|
|
||||||
stickers: (
|
stickers: (
|
||||||
<div className="p-4 text-muted-foreground">
|
<div className="p-4 text-muted-foreground">
|
||||||
Stickers view coming soon...
|
Stickers view coming soon...
|
||||||
|
@ -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>
|
||||||
|
);
|
||||||
|
}
|
Reference in New Issue
Block a user