import { Route } from './types';

import Media from '@polkadot/joy-media';

export default function create (t: <T = string> (key: string, text: string, options: { ns: string }) => T): Route {
  return {
    Component: Media,
    display: {},
    text: t<string>('nav.media', 'Media', { ns: 'apps-routing' }),
    icon: 'play-circle',
    name: 'media'
  };
}
