|
|
@@ -1,8 +1,76 @@ |
|
|
|
const CreateRingtoneTemplate = () => { |
|
|
|
import {FC, FormEventHandler} from 'react' |
|
|
|
import { LeftSidebarWithMenu } from '@tesseract-design/viewfinder' |
|
|
|
import CreateRingtoneForm from '../../organisms/forms/CreateRingtone' |
|
|
|
import Link from '../../molecules/navigation/Link' |
|
|
|
|
|
|
|
type Props = { |
|
|
|
onSubmit?: FormEventHandler |
|
|
|
} |
|
|
|
|
|
|
|
const CreateRingtoneTemplate: FC<Props> = ({ |
|
|
|
onSubmit, |
|
|
|
}) => { |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
CreateRingtone |
|
|
|
</div> |
|
|
|
<LeftSidebarWithMenu.Layout |
|
|
|
linkComponent={({ url, icon, label, }) => ( |
|
|
|
<Link |
|
|
|
href={url} |
|
|
|
> |
|
|
|
<LeftSidebarWithMenu.SidebarMenuContainer> |
|
|
|
<LeftSidebarWithMenu.SidebarMenuItemIcon> |
|
|
|
{icon} |
|
|
|
</LeftSidebarWithMenu.SidebarMenuItemIcon> |
|
|
|
{label} |
|
|
|
</LeftSidebarWithMenu.SidebarMenuContainer> |
|
|
|
</Link> |
|
|
|
)} |
|
|
|
moreLinkMenuItem={{ |
|
|
|
label: 'More', |
|
|
|
icon: 'M', |
|
|
|
url: {}, |
|
|
|
}} |
|
|
|
moreLinkComponent={({ url, icon, label, }) => ( |
|
|
|
<Link |
|
|
|
href={url} |
|
|
|
> |
|
|
|
<LeftSidebarWithMenu.MoreSidebarMenuContainer> |
|
|
|
<LeftSidebarWithMenu.MoreSidebarMenuItemIcon> |
|
|
|
{icon} |
|
|
|
</LeftSidebarWithMenu.MoreSidebarMenuItemIcon> |
|
|
|
{label} |
|
|
|
</LeftSidebarWithMenu.MoreSidebarMenuContainer> |
|
|
|
</Link> |
|
|
|
)} |
|
|
|
sidebarMenuItems={[ |
|
|
|
{ |
|
|
|
id: 'browse', |
|
|
|
label: 'Browse', |
|
|
|
icon: 'B', |
|
|
|
url: { |
|
|
|
pathname: '/ringtones', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'compose', |
|
|
|
label: 'Compose', |
|
|
|
icon: 'C', |
|
|
|
url: { |
|
|
|
pathname: '/my/create/ringtone', |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
sidebarMain={ |
|
|
|
<LeftSidebarWithMenu.SidebarMainContainer> |
|
|
|
Hi |
|
|
|
</LeftSidebarWithMenu.SidebarMainContainer> |
|
|
|
} |
|
|
|
> |
|
|
|
<LeftSidebarWithMenu.ContentContainer> |
|
|
|
<CreateRingtoneForm |
|
|
|
onSubmit={onSubmit} |
|
|
|
/> |
|
|
|
</LeftSidebarWithMenu.ContentContainer> |
|
|
|
</LeftSidebarWithMenu.Layout> |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|