blob: 4f8fcbf9741cbb29621226b33ca3f42351f1c573 [file] [log] [blame]
Hector Dearman3d26fdb2018-07-09 13:54:06 +01001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
Micha Schwab01b35682018-06-28 13:56:49 +010014
15import * as m from 'mithril';
Hector Dearman44869b12018-07-09 09:54:31 +010016import {TrackShell} from './track_shell';
Micha Schwab01b35682018-06-28 13:56:49 +010017
Hector Dearman44869b12018-07-09 09:54:31 +010018export const Track = {
Micha Schwabda322442018-06-28 20:19:59 +010019 view({attrs}) {
Deepanjan Roya752b462018-07-04 01:24:31 +010020 return m(
21 '.track',
22 {style: {position: 'absolute', top: 0, left: 0, width: '100%'}},
Hector Dearman44869b12018-07-09 09:54:31 +010023 m(TrackShell, attrs));
Micha Schwab01b35682018-06-28 13:56:49 +010024 }
Hector Dearman44869b12018-07-09 09:54:31 +010025} as m.Component<{name: string}>;