feat: add TextView component to media panel
This commit is contained in:
@ -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...
|
||||
|
@ -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